what does the bible say?
The Old Testament records different types of fasting. In Exodus, fasting from both sex (Exodus 19:15) and food is mentioned (Exodus 34:28). King David fasted on behalf of his son (2 Samuel 12:16–23), Elijah endured a miraculous forty-day fast (1 Kings 19), and both King Jehoshaphat and Queen Esther called their people to fast (2 Chronicles 20:3; 2 Chronicles 20:24–27; Ezra 8:21; Esther 4:16). In Isaiah 58:3–7, we are reminded to fast with pure motives, and the story of Nineveh shows that even the most wicked people can seek repentance and humble themselves during fasting (Jonah 3). The New Testament also addresses the topic of fasting. Jesus implies that fasting is an expected practice (Matthew 6:16–17), and He Himself fasted for forty days and forty nights in the wilderness before He endured a spiritual attack from Satan (Luke 4:1–13). In Luke 2:36–38, a widowed prophetess, Anna, is recorded fasting in the temple for most of her life. Saul is also recorded fasting for three days after encountering Jesus and being struck blind (Acts 9:9). Lastly, in 1 Corinthians 7:5, married couples are instructed to abstain from sex in order to dedicate themselves to prayer. Fasting allows us to abstain from things, so we can focus on seeking God, His direction, His forgiveness, His intervention, and His presence.