Sura Al-Baqara

2:184

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

[Fastan skall vara] ett begränsat antal dagar. Men den av er som är sjuk eller på resa [skall fasta senare] under motsvarande antal dagar och de som har möjlighet skall som offer ge en nödställd att äta. Och den som självmant gör gott utöver vad plikten bjuder, [skall finna att] detta kommer honom själv till godo. Och fastan är för ert väl - om ni visste [hur mycket gott den tillför er]!

Tafsir 2:184

You are ordered to fast for a small number of days in the year. Yet whoever of you is ill, with an illness that makes fasting difficult, or travelling, then they do not need to fast; but they can make up for these days by fasting the same number of other days. Those who are able to fast, but do not, should compensate by feeding a poor person for every day they did not fast. Fasting is better for you than not fasting and feeding a poor person instead, if you only knew what goodness there is in fasting. This was the first of Allah’s laws about fasting: whoever wanted to fast did so; and whoever did not want to fast was permitted not to, and fed a poor person instead. Afterwards Allah made fasting a duty for every able person who has reached puberty.