The fast of the month of Ramadan is made obligatory.
The obligation of fasting is set out in Qur’an 2:183–185, which names the month of Ramadan as the month in which the Qur’an was revealed. Seerah historians date the prescription of the Ramadan fast to the second year after the Hijrah, in Madinah.