⌕ Search EN | اردو | عربي | ID | MS | TR | বাংলা | DE | FR Download Calendar

Home › Guides › History of Ramadan: From Revelation to Today

Guides · Ramadan 2027

History of Ramadan: From Revelation to Today

The history of Ramadan: fasting prescribed in 2 AH, fasting of earlier prophets, the first revelation, Badr on 17 Ramadan, and how the month grew over time.

By the Daily Ramadan Editorial Team · Last updated: November 2026 · How we source religious content

Quick Answer

Ramadan became the month of fasting in 2 AH (624 CE), when the fasting verses of Surah al-Baqarah (2:183-185) were revealed in Madinah. The first revelation of the Quran had come in Ramadan years earlier, and fasting was also prescribed for earlier communities (Quran 2:183) — Ramadan gathers both histories.

Ramadan did not begin as a cultural festival that slowly acquired religious meaning. From its very first observance it was tied to revelation, migration and a young community learning to worship together. Understanding that history also explains many things Muslims still do today — why the Qur'an is recited so much in this month, why the night matters as much as the day, and why dates, charity and congregational prayer sit at its centre. If you are new to the basics, start with what Ramadan is; this guide tells the story behind it.

Before Ramadan: Fasting Among Earlier Peoples

The Qur'an presents fasting as an old act of worship, not a new invention:

Allah says (meaning): "O you who believe, fasting has been prescribed for you as it was prescribed for those before you, so that you may attain taqwa." — Qur'an 2:183

The Qur'an mentions fasting in the stories of earlier figures: Maryam (Mary) is described as keeping a fast of silence (Qur'an 19:26 in meaning), and fasting is prescribed in the Qur'an as an expiation in several situations, reflecting a practice already understood by its first audience. Historical reports also describe fasting among the Jews and Christians of the time, and among the Quraysh of Makkah, who fasted the day of Ashura — the 10th of Muharram — before Islam. When the Prophet Muhammad ﷺ came to Madinah and found the Jewish community fasting Ashura in gratitude for the rescue of Musa (Moses), he said Muslims had more right to Musa than they, fasted it himself, and ordered its fast (reported in Sahih al-Bukhari and Sahih Muslim). For a time, Ashura was the community's obligatory fast.

The First Revelation in Ramadan

The defining event of Ramadan happened before there was a Ramadan fast at all. The Prophet Muhammad ﷺ used to withdraw to Cave Hira, outside Makkah, for worship and reflection. It was there, in Ramadan, that the first words of the Qur'an were revealed:

Allah says (meaning): "The month of Ramadan is the one in which the Qur'an was sent down, as guidance for mankind and clear proofs of guidance and criterion." — Qur'an 2:185

Surah Al-Qadr describes that night as Laylatul Qadr, the Night of Decree, better than a thousand months (Qur'an 97). Surah Ad-Dukhan likewise speaks of a blessed night in which the Qur'an was sent down (Qur'an 44:3–4). This is why Ramadan is often called the month of the Qur'an: the fast and the Book arrived in the same month, and Muslims mark that by reciting the whole Qur'an across the month, in personal reading and in the Taraweeh prayers. You can read the verses themselves in our collection on Ramadan in the Qur'an and Hadith.

2 AH: Fasting Is Prescribed in Madinah

After the Hijrah — the migration from Makkah to Madinah in 622 CE — a Muslim society began to take shape: a mosque was built, the call to prayer established, and direction of prayer changed to the Kaaba in Makkah. In Sha'ban of 2 AH, the verses of Surah Al-Baqarah (2:183–187) prescribed the fast of Ramadan for every adult Muslim who was able, resident and healthy, with concessions for illness and travel and a provision for those unable to fast to feed a person in need instead.

With Ramadan prescribed, Ashura reverted to a recommended fast. Other Ramadan institutions also date from this formative period in Madinah: the charity of Zakat al-Fitr was prescribed in 2 AH so that the poor could share in Eid, and the Eid prayer and festival at the end of the fast were established in Madinah. Reports in the hadith collections show the community learning the details as they went — when exactly to stop eating at dawn, how travellers should fast, and how the Prophet ﷺ himself ate Suhoor and hastened to break the fast at sunset.

Badr: 17 Ramadan, 2 AH

The very first Ramadan that Muslims fasted contained the most famous date in early Islamic history. On 17 Ramadan 2 AH, the small Muslim force met the army of Quraysh at the wells of Badr. The Qur'an calls Badr "the day of criterion, the day the two hosts met" (Qur'an 8:41 in meaning) and describes Allah's help to the believers on that day. That the community's first experience of Ramadan fasting included Badr left a permanent mark on how the month is understood: Ramadan in Islamic memory is not only a month of quiet devotion, but also of resolve, sacrifice and trust in Allah under hardship. Muslims fasting while working, studying or serving others today are consciously following a month that was demanding from its first year.

Ramadan in the Prophet's ﷺ Lifetime

The hadith collections preserve a vivid picture of Ramadan with the Prophet ﷺ. He was, in the famous description of Ibn Abbas, the most generous of people, "and he was at his most generous in Ramadan" (Sahih al-Bukhari). Jibreel would meet him every night of Ramadan to review the Qur'an with him. In the last ten nights he would intensify his worship, "tighten his waist-belt, spend the night in worship and wake his family" (Sahih al-Bukhari and Sahih Muslim), and he performed I'tikaf — secluding himself in the mosque for worship — in the last ten days, a practice his wives continued after him. The conquest of Makkah also took place in Ramadan, in 8 AH, when the Prophet ﷺ travelled and, as the reports note, broke his fast on the journey because of the hardship — a living demonstration of the traveller's concession.

Ramadan After the Prophet ﷺ

Under the caliph Umar ibn al-Khattab, the people praying separately in the mosque at night during Ramadan were gathered behind a single reciter — Ubayy ibn Ka'b — which became the established congregational form of Taraweeh (reported in Sahih al-Bukhari). We discuss the history and the 8-versus-20 question carefully in our Taraweeh prayer guide.

As Islam spread, Ramadan took on local colour everywhere it landed — lanterns in Egypt, drums waking people for Suhoor in the Levant and Turkey, special sweets from South Asia to West Africa — while its core stayed recognisably the same: dawn-to-sunset fasting, night prayer, Qur'an, charity and Eid. The lunar calendar means Ramadan migrates through the seasons, so over a lifetime a person fasts it in long summer days and short winter ones alike.

Ramadan Today

In 2027 Ramadan is expected to begin on Monday 8 February and end on Monday 8 March, with Eid al-Fitr on Tuesday 9 March — see the Ramadan 2027 calendar for day-by-day dates, and your city Sehri and Iftar timetable for exact times where you live. The technology has changed — printed timetables have become phone alerts — but a Muslim breaking fast with dates at sunset in 2027 is doing, self-consciously and deliberately, what the first community did in Madinah in 2 AH. That continuity is a large part of what the month means.

Sources & References

  • Qur'an 2:183–185, 8:41, 19:26, 44:3–4 and 97 — fasting of earlier peoples, Badr, the blessed night and the revelation in Ramadan.
  • Sahih al-Bukhari — Ashura fast on arrival in Madinah; generosity of the Prophet ﷺ in Ramadan; Umar gathering people behind Ubayy for night prayer.
  • Sahih Muslim — Ashura and Musa; worship in the last ten nights.

For personal religious rulings, please consult a qualified scholar who knows your situation.

Frequently Asked Questions

When was fasting in Ramadan first prescribed?

Fasting in Ramadan was prescribed in Shaaban of the second year after Hijrah (2 AH), after the Muslim community had settled in Madinah. Muslims first fasted a full Ramadan in that year.

Did people fast before Islam?

Yes. The Quran says fasting was prescribed for earlier communities as well (2:183). Reports mention fasting among earlier prophets and peoples, and the Prophet Muhammad ﷺ fasted the day of Ashura before Ramadan was prescribed.

What major event happened in Ramadan in early Islam?

The Battle of Badr, the first major battle in Islamic history, took place on 17 Ramadan in 2 AH, in the very first Ramadan that Muslims fasted.

When did the revelation of the Quran begin?

The first revelation came to the Prophet Muhammad ﷺ in Ramadan, during his retreat in Cave Hira, on a night identified with Laylatul Qadr, the Night of Decree.

Related Pages