يَزِيدُ بْنُ أَبِي عُبَيْدٍ مَوْلَى سَلَمَةَ، عَنْ سَلَمَةَ
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). (Using translation from Muslim 1145b)
كُنَّا فِي رَمَضَانَ فِي عَهْدِ رَسُولِ اللهِ ﷺ مَنْ شَاءَ صَامَ وَمَنْ شَاءَ أَفْطَرَ وَافْتَدَى بِطَعَامِ مِسْكِينٍ حَتَّى نَزَلَتْ هَذِهِ الْآيَةُ {فَمَنْ شَهِدَ مِنْكُمُ الشَّهْرَ فَلْيَصُمْهُ}