صحيح مسلم
Sahih Muslim
كتاب الصيام
The Book of Fasting
باب بَيَانِ نَسْخِ قَوْلِهِ تَعَالَى: {وَعَلَى الَّذِينَ يُطِيقُونَهُ فِدْيَةٌ} بِقَوْلِهِ: {فَمَنْ شَهِدَ مِنْكُمُ الشَّهْرَ فَلْيَصُمْهُ}:
Chapter: The Saying of Allah Most High: "... And as for those who can fast with difficulty, they have) a choice either to fast or) to feed a Miskin (poor person) (for every day)" is Abrogated by His saying: "... So whoever of you sights (the crescent on the first night of) the month (of Ramadan i.e. is present at his home), he must observe Sawm (fasts) that month"...
2 hadith
Hadith 1145
Salama bin Akwa' (RA) reported that when this verse was revealed: "And as for those who can fast (but do not) expiation is the feeding of a needy person" (ii. 183), (he who liked to observe fast did observe it) and he who felt reluctant to observe it ate and expiated till the verse was revealed which abrogated it.
Hadith 1145
Salama bin Akwa' reported: We, during the lifetime of the Messenger of Allah (ﷺ) , in one month of Ramadan (observed fast according to our liking). He who wished to fast lasted and he who wished to break broke it and fed a needy person as an expiation (1544) till this verse was revealed: "He who witnesses among you the month (of Ramadan) he should observe fast during it" (ii. 184).