Source-Led Reading

Quran Verses About Fasting and Ramadan, With Sahih Hadith

What does the Quran say about fasting in Ramadan?

Qur'an 2:183 prescribes fasting so that believers may be mindful of God, and 2:185 names Ramadan as the month the Quran was revealed, with later days for the ill and travellers. Sahih al-Bukhari 38 says whoever fasts Ramadan with faith and hope of reward has past sins forgiven.

Six Quran passages, six hadith, and three Hisn al-Muslim duas on the purpose of fasting, its manners, and the Night of Qadr.

Published by Madeenan Editorial · Updated · How Sources Are Reviewed

Most of what the Quran says directly about fasting sits in five consecutive verses of Surah al-Baqarah, 2:183 to 2:187. Between them they give the purpose, the month, the exemptions, and the hours, and in the middle sits a verse about Allah being near to those who call on Him.

This page keeps those verses together, adds Surah al-Qadr, and pairs them with reports about why people fast and how they should behave while fasting. Questions about who must fast, make-up days, and expiation belong with a qualified scholar.

What the Quran Says About Fasting

Read in order, these verses move from the command to fast, to the month of Ramadan, to the nights of the fast.

  1. Fasting Is Prescribed

    Prescribes fasting as it was for earlier communities, so that people may be mindful of God.

    Qur'an

    Qur'an 2:183

    يَا أَيُّهَا الَّذِينَ آمَنُوا كُتِبَ عَلَيْكُمُ الصِّيَامُ كَمَا كُتِبَ عَلَى الَّذِينَ مِنْ قَبْلِكُمْ لَعَلَّكُمْ تَتَّقُونَ١٨٣

    You who believe, fasting is prescribed for you, as it was prescribed for those before you, so that you may be mindful of God

  2. A Specific Number of Days

    Mentions later days for illness and travel, and a way to compensate for those who can fast only with extreme difficulty.

    Qur'an

    Qur'an 2:184

    أَيَّامًا مَعْدُودَاتٍ ۚ فَمَنْ كَانَ مِنْكُمْ مَرِيضًا أَوْ عَلَىٰ سَفَرٍ فَعِدَّةٌ مِنْ أَيَّامٍ أُخَرَ ۚ وَعَلَى الَّذِينَ يُطِيقُونَهُ فِدْيَةٌ طَعَامُ مِسْكِينٍ ۖ فَمَنْ تَطَوَّعَ خَيْرًا فَهُوَ خَيْرٌ لَهُ ۚ وَأَنْ تَصُومُوا خَيْرٌ لَكُمْ ۖ إِنْ كُنْتُمْ تَعْلَمُونَ١٨٤

    Fast for a specific number of days, but if one of you is ill, or on a journey, on other days later. For those who can fast only with extreme difficulty, there is a way to compensate- feed a needy person. But if anyone does good of his own accord, it is better for him, and fasting is better for you, if only you knew

  3. The Month the Quran Was Revealed

    Names Ramadan as the month of the Quran's revelation and says God wants ease, not hardship.

    Qur'an

    Qur'an 2:185

    شَهْرُ رَمَضَانَ الَّذِي أُنْزِلَ فِيهِ الْقُرْآنُ هُدًى لِلنَّاسِ وَبَيِّنَاتٍ مِنَ الْهُدَىٰ وَالْفُرْقَانِ ۚ فَمَنْ شَهِدَ مِنْكُمُ الشَّهْرَ فَلْيَصُمْهُ ۖ وَمَنْ كَانَ مَرِيضًا أَوْ عَلَىٰ سَفَرٍ فَعِدَّةٌ مِنْ أَيَّامٍ أُخَرَ ۗ يُرِيدُ اللَّهُ بِكُمُ الْيُسْرَ وَلَا يُرِيدُ بِكُمُ الْعُسْرَ وَلِتُكْمِلُوا الْعِدَّةَ وَلِتُكَبِّرُوا اللَّهَ عَلَىٰ مَا هَدَاكُمْ وَلَعَلَّكُمْ تَشْكُرُونَ١٨٥

    It was in the month of Ramadan that the Quran was revealed as guidance for mankind, clear messages giving guidance and distinguishing between right and wrong. So any one of you who is present that month should fast, and anyone who is ill or on a journey should make up for the lost days by fasting on other days later. God wants ease for you, not hardship. He wants you to complete the prescribed period and to glorify Him for having guided you, so that you may be thankful

  4. I Am Near

    Placed within the fasting verses: Allah is near and responds to those who call on Him.

    Qur'an

    Qur'an 2:186

    وَإِذَا سَأَلَكَ عِبَادِي عَنِّي فَإِنِّي قَرِيبٌ ۖ أُجِيبُ دَعْوَةَ الدَّاعِ إِذَا دَعَانِ ۖ فَلْيَسْتَجِيبُوا لِي وَلْيُؤْمِنُوا بِي لَعَلَّهُمْ يَرْشُدُونَ١٨٦

    [Prophet], if My servants ask you about Me, I am near. I respond to those who call Me, so let them respond to Me, and believe in Me, so that they may be guided

  5. The Nights of the Fast

    Sets the hours of the fast, from the white thread of dawn until nightfall.

    Qur'an

    Qur'an 2:187

    أُحِلَّ لَكُمْ لَيْلَةَ الصِّيَامِ الرَّفَثُ إِلَىٰ نِسَائِكُمْ ۚ هُنَّ لِبَاسٌ لَكُمْ وَأَنْتُمْ لِبَاسٌ لَهُنَّ ۗ عَلِمَ اللَّهُ أَنَّكُمْ كُنْتُمْ تَخْتَانُونَ أَنْفُسَكُمْ فَتَابَ عَلَيْكُمْ وَعَفَا عَنْكُمْ ۖ فَالْآنَ بَاشِرُوهُنَّ وَابْتَغُوا مَا كَتَبَ اللَّهُ لَكُمْ ۚ وَكُلُوا وَاشْرَبُوا حَتَّىٰ يَتَبَيَّنَ لَكُمُ الْخَيْطُ الْأَبْيَضُ مِنَ الْخَيْطِ الْأَسْوَدِ مِنَ الْفَجْرِ ۖ ثُمَّ أَتِمُّوا الصِّيَامَ إِلَى اللَّيْلِ ۚ وَلَا تُبَاشِرُوهُنَّ وَأَنْتُمْ عَاكِفُونَ فِي الْمَسَاجِدِ ۗ تِلْكَ حُدُودُ اللَّهِ فَلَا تَقْرَبُوهَا ۗ كَذَٰلِكَ يُبَيِّنُ اللَّهُ آيَاتِهِ لِلنَّاسِ لَعَلَّهُمْ يَتَّقُونَ١٨٧

    You [believers] are permitted to lie with your wives during the night of the fast: they are [close] as garments to you, as you are to them. God was aware that you were betraying yourselves, so He turned to you in mercy and pardoned you: now you can lie with them- seek what God has ordained for you- eat and drink until the white thread of dawn becomes distinct from the black. Then fast until nightfall. Do not lie with them during the nights of your devotional retreat in the mosques: these are the bounds set by God, so do not go near them. In this way God makes His messages clear to people, that they may guard themselves against doing wrong

  6. The Night of Glory

    Surah al-Qadr: the night the Quran was sent down, better than a thousand months.

    Qur'an

    Qur'an 97:1–5

    إِنَّا أَنْزَلْنَاهُ فِي لَيْلَةِ الْقَدْرِ١
    وَمَا أَدْرَاكَ مَا لَيْلَةُ الْقَدْرِ٢
    لَيْلَةُ الْقَدْرِ خَيْرٌ مِنْ أَلْفِ شَهْرٍ٣
    تَنَزَّلُ الْمَلَائِكَةُ وَالرُّوحُ فِيهَا بِإِذْنِ رَبِّهِمْ مِنْ كُلِّ أَمْرٍ٤
    سَلَامٌ هِيَ حَتَّىٰ مَطْلَعِ الْفَجْرِ٥

    We sent it down on the Night of Glory What will explain to you what that Night of Glory is The Night of Glory is better than a thousand months on that night the angels and the Spirit descend again and again with their Lord’s permission on every task [there is] peace that night until the break of dawn

What the Hadith Say About Fasting

Five reports are from Sahih al-Bukhari. One is from Jami` at-Tirmidhi; most graders shown on its card call it sahih, and one grades it da'if.

  1. Fasting With Faith and Hope

    Whoever fasts Ramadan out of faith and hoping for reward has past sins forgiven.

    Hadith

    Sahih al-Bukhari 38

    Sahih (Authentic)

    حَدَّثَنَا ابْنُ سَلاَمٍ، قَالَ أَخْبَرَنَا مُحَمَّدُ بْنُ فُضَيْلٍ، قَالَ حَدَّثَنَا يَحْيَى بْنُ سَعِيدٍ، عَنْ أَبِي سَلَمَةَ، عَنْ أَبِي هُرَيْرَةَ، قَالَ قَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم ‏ "‏ مَنْ صَامَ رَمَضَانَ إِيمَانًا وَاحْتِسَابًا غُفِرَ لَهُ مَا تَقَدَّمَ مِنْ ذَنْبِهِ ‏"‏‏.‏

    Narrated Abu Huraira: Allah's Messenger (ﷺ) said, "Whoever observes fasts during the month of Ramadan out of sincere faith, and hoping to attain Allah's rewards, then all his past sins will be forgiven

  2. Fasting Is for Me

    Allah says fasting is for Him and He rewards it; the report also calls fasting a shield.

    Hadith

    Sahih al-Bukhari 1904

    Sahih (Authentic)

    حَدَّثَنَا إِبْرَاهِيمُ بْنُ مُوسَى، أَخْبَرَنَا هِشَامُ بْنُ يُوسُفَ، عَنِ ابْنِ جُرَيْجٍ، قَالَ أَخْبَرَنِي عَطَاءٌ، عَنْ أَبِي صَالِحٍ الزَّيَّاتِ، أَنَّهُ سَمِعَ أَبَا هُرَيْرَةَ ـ رضى الله عنه ـ يَقُولُ قَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم ‏ "‏ قَالَ اللَّهُ كُلُّ عَمَلِ ابْنِ آدَمَ لَهُ إِلاَّ الصِّيَامَ، فَإِنَّهُ لِي، وَأَنَا أَجْزِي بِهِ‏.‏ وَالصِّيَامُ جُنَّةٌ، وَإِذَا كَانَ يَوْمُ صَوْمِ أَحَدِكُمْ، فَلاَ يَرْفُثْ وَلاَ يَصْخَبْ، فَإِنْ سَابَّهُ أَحَدٌ، أَوْ قَاتَلَهُ فَلْيَقُلْ إِنِّي امْرُؤٌ صَائِمٌ‏.‏ وَالَّذِي نَفْسُ مُحَمَّدٍ بِيَدِهِ لَخُلُوفُ فَمِ الصَّائِمِ أَطْيَبُ عِنْدَ اللَّهِ مِنْ رِيحِ الْمِسْكِ، لِلصَّائِمِ فَرْحَتَانِ يَفْرَحُهُمَا إِذَا أَفْطَرَ فَرِحَ، وَإِذَا لَقِيَ رَبَّهُ فَرِحَ بِصَوْمِهِ ‏"‏‏.‏

    Narrated Abu Huraira:Allah's Messenger (ﷺ) said, "Allah said, 'All the deeds of Adam's sons (people) are for them, except fasting which is for Me, and I will give the reward for it.' Fasting is a shield or protection from the fire and from committing sins. If one of you is fasting, he should avoid sexual relation with his wife and quarreling, and if somebody should fight or quarrel with him, he should say, 'I am fasting.' By Him in Whose Hands my soul is' The unpleasant smell coming out from the mouth of a fasting person is better in the sight of Allah than the smell of musk. There are two pleasures for the fasting person, one at the time of breaking his fast, and the other at the time when he will meet his Lord; then he will be pleased because of his fasting

  3. More Than Food and Drink

    Whoever does not give up false speech and evil actions, Allah has no need of their leaving food and drink.

    Hadith

    Sahih al-Bukhari 1903

    Sahih (Authentic)

    حَدَّثَنَا آدَمُ بْنُ أَبِي إِيَاسٍ، حَدَّثَنَا ابْنُ أَبِي ذِئْبٍ، حَدَّثَنَا سَعِيدٌ الْمَقْبُرِيُّ، عَنْ أَبِيهِ، عَنْ أَبِي هُرَيْرَةَ ـ رضى الله عنه ـ قَالَ قَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم ‏ "‏ مَنْ لَمْ يَدَعْ قَوْلَ الزُّورِ وَالْعَمَلَ بِهِ فَلَيْسَ لِلَّهِ حَاجَةٌ فِي أَنْ يَدَعَ طَعَامَهُ وَشَرَابَهُ ‏"‏‏.‏

    Narrated Abu Huraira:The Prophet (ﷺ) said, "Whoever does not give up forged speech and evil actions, Allah is not in need of his leaving his food and drink (i.e. Allah will not accept his fasting)

  4. Blessing in Suhur

    Take the pre-dawn meal, for there is blessing in it.

    Hadith

    Sahih al-Bukhari 1923

    Sahih (Authentic)

    حَدَّثَنَا آدَمُ بْنُ أَبِي إِيَاسٍ، حَدَّثَنَا شُعْبَةُ، حَدَّثَنَا عَبْدُ الْعَزِيزِ بْنُ صُهَيْبٍ، قَالَ سَمِعْتُ أَنَسَ بْنَ مَالِكٍ ـ رضى الله عنه ـ قَالَ قَالَ النَّبِيُّ صلى الله عليه وسلم ‏ "‏ تَسَحَّرُوا فَإِنَّ فِي السَّحُورِ بَرَكَةً ‏"‏‏.‏

    Narrated Anas bin Malik:The Prophet (ﷺ) said, "Take Suhur as there is a blessing in it

  5. Seek the Night of Qadr

    Search for the Night of Qadr in the odd nights of the last ten days of Ramadan.

    Hadith

    Sahih al-Bukhari 2017

    Sahih (Authentic)

    حَدَّثَنَا قُتَيْبَةُ بْنُ سَعِيدٍ، حَدَّثَنَا إِسْمَاعِيلُ بْنُ جَعْفَرٍ، حَدَّثَنَا أَبُو سُهَيْلٍ، عَنْ أَبِيهِ، عَنْ عَائِشَةَ ـ رضى الله عنها ـ أَنَّ رَسُولَ اللَّهِ صلى الله عليه وسلم قَالَ ‏ "‏ تَحَرَّوْا لَيْلَةَ الْقَدْرِ فِي الْوِتْرِ مِنَ الْعَشْرِ الأَوَاخِرِ مِنْ رَمَضَانَ ‏"‏‏.‏

    Narrated `Aisha:Allah's Messenger (ﷺ) said, "Search for the Night of Qadr in the odd nights of the last ten days of Ramadan

  6. Dua for the Night of Qadr

    The prayer “O Allah, You are Pardoning and love pardon, so pardon me,” taught to Aishah.

    Hadith

    Jami` at-Tirmidhi 3513

    Ahmad Muhammad Shakir: Sahih, Al-Albani: Sahih, Bashar Awad Maarouf: Hasan Sahih, Zubair Ali Zai: Daif

    حَدَّثَنَا قُتَيْبَةُ بْنُ سَعِيدٍ، حَدَّثَنَا جَعْفَرُ بْنُ سُلَيْمَانَ الضُّبَعِيُّ، عَنْ كَهْمَسِ بْنِ الْحَسَنِ، عَنْ عَبْدِ اللَّهِ بْنِ بُرَيْدَةَ، عَنْ عَائِشَةَ، قَالَتْ قُلْتُ يَا رَسُولَ اللَّهِ أَرَأَيْتَ إِنْ عَلِمْتُ أَىُّ لَيْلَةٍ لَيْلَةُ الْقَدْرِ مَا أَقُولُ فِيهَا قَالَ ‏ "‏ قُولِي اللَّهُمَّ إِنَّكَ عَفُوٌّ كَرِيمٌ تُحِبُّ الْعَفْوَ فَاعْفُ عَنِّي ‏"‏ ‏.‏ قَالَ هَذَا حَدِيثٌ حَسَنٌ صَحِيحٌ ‏.‏

    Aishah narrated:“I said: ‘O Messenger of Allah, what is your view if I know when the Night of Al-Qadr is, then what should I say in it?” He said: ‘Say: “O Allah, indeed You are Pardoning, [Generous,] You love pardon, so pardon me (Allāhumma innaka `Afuwwun [Karīmun], tuḥibbul-`afwa fa`fu `annī).’”

Duas for Fasting From Hisn al-Muslim

These entries come from Hisn al-Muslim's chapters on breaking the fast and on conduct while fasting. Madeenan shows each entry as recorded in the collection and does not attach a separate grade to it.

  1. When Breaking the Fast

    The thirst has gone, the veins are quenched, and the reward is confirmed, if Allah wills.

    Dua

    Hisn al-Muslim 176

    ((ذَهَبَ الظَّمَأُ وَابْتَلَّتِ العُرُوقُ، وَثَبَتَ الْأَجْرُ إِنْ شَاءَ اللَّهُ)).

    (The thirst has gone and the veins are quenched, and reward is confirmed, if Allah wills.)

  2. For Hosts Who Offer Iftar

    A prayer for a family that invites you to break your fast with them.

    Dua

    Hisn al-Muslim 184

    ((أَفْطَرَ عِنْدَكُمُ الصَّائِمُونَ، وَأَكَلَ طَعَامَكُمُ الْأَبْرَارُ، وَصَلَّتْ عَلَيْكُمُ الْمَلاَئِكَةُ)).

    (May the fasting break their fast in your home, and may the dutiful and pious eat your food, and may the angles send prayers upon you.)

  3. When Someone Is Rude While You Fast

    “I am fasting, I am fasting,” the same response described in Sahih al-Bukhari 1904 above.

    Dua

    Hisn al-Muslim 186

    ((إِنِّي صَائِمٌ، إِنِّي صَائِمٌ)).

    (I am fasting, I am fasting.)

The Purpose Is Mindfulness

Qur'an 2:183 gives the reason for fasting in its last words: so that you may be mindful of God. Sahih al-Bukhari 1903 shows the same concern from the other side; a fast that keeps away from food but not from false speech misses its point.

Sahih al-Bukhari 1904 and Hisn al-Muslim 186 carry that into daily conduct. When provoked, the fasting person is told to say “I am fasting” rather than answer back.

Ease Is Part of the Command

Qur'an 2:184–185 build exemptions into the command itself: the ill and travellers make up days later, and the verse states that God wants ease for people, not hardship.

These verses set out the principle. Whether a particular illness, pregnancy, or job falls within it is a question for a scholar who knows the details.

Sources Cited on This Page

  1. Qur'an 2:183 · Fasting Is Prescribed
  2. Qur'an 2:184 · A Specific Number of Days
  3. Qur'an 2:185 · The Month the Quran Was Revealed
  4. Qur'an 2:186 · I Am Near
  5. Qur'an 2:187 · The Nights of the Fast
  6. Qur'an 97:1–5 · The Night of Glory
  7. Sahih al-Bukhari 38 · Fasting With Faith and Hope
  8. Sahih al-Bukhari 1904 · Fasting Is for Me
  9. Sahih al-Bukhari 1903 · More Than Food and Drink
  10. Sahih al-Bukhari 1923 · Blessing in Suhur
  11. Sahih al-Bukhari 2017 · Seek the Night of Qadr
  12. Jami at-Tirmidhi 3513 · Dua for the Night of Qadr
  13. Hisn al-Muslim 176 · When Breaking the Fast
  14. Hisn al-Muslim 184 · For Hosts Who Offer Iftar
  15. Hisn al-Muslim 186 · When Someone Is Rude While You Fast

Common Questions

Which Quran verses are about fasting in Ramadan?

Qur'an 2:183–187 is the main passage. 2:183 prescribes fasting, 2:185 names Ramadan as the month the Quran was revealed, and 2:187 sets the hours from dawn until nightfall.

Why do Muslims fast?

Qur'an 2:183 says fasting is prescribed “so that you may be mindful of God.” Sahih al-Bukhari 38 adds that fasting Ramadan out of faith and hope of reward brings forgiveness of past sins.

What is the dua for breaking the fast?

Hisn al-Muslim 176 records: “The thirst has gone and the veins are quenched, and reward is confirmed, if Allah wills.”

When is Laylat al-Qadr?

Sahih al-Bukhari 2017 says to search for it in the odd nights of the last ten days of Ramadan. Surah al-Qadr (97:1–5) describes it as better than a thousand months.

What dua is recommended on Laylat al-Qadr?

Jami` at-Tirmidhi 3513 records the Prophet ﷺ teaching Aishah: “O Allah, indeed You are Pardoning, You love pardon, so pardon me.” Most graders shown on its card call it sahih; one grades it da'if.

Read the Sources for Yourself

Search the Quran, Hadith, Tafsir, and duas directly, or paste a quotation you have seen shared to find where it comes from.

Building an Islamic app? The same cited sources are available through the Madeenan API.