[Machine] As for fasting, the Messenger of Allah ﷺ observed fasting after arriving in Madinah. He used to fast three days from every month, as well as fasting on the day of Ashura. He continued to fast for seventeen months, from the month of Rabi' al-Awwal to the month of Rabi' al-Thani, until Ramadan came. Then Allah, the Most Blessed and Exalted, obligated him to fast the month of Ramadan, as stated in the verse "Fasting is prescribed for you as it was prescribed for those before you" [Surah Al-Baqarah, 2:183]. The rest of this narration was mentioned by Mursal Abdullah ibn Rahman, who did not reach Muadh ibn Jabal.
وَأَمَّا حَوْلُ الصِّيَامِ فَإِنَّ رَسُولَ اللهِ ﷺ صَامَ بَعْدَمَا قَدِمَ الْمَدِينَةَ فَجَعَلَ يَصُومُ مِنْ كُلِّ شَهْرٍ ثَلَاثَةَ أَيَّامٍ وَصَامَ عَاشُورَاءَ فَصَامَ سَبْعَةَ عَشَرَ شَهْرًا شَهْرَ رَبِيعٍ إِلَى شَهْرِ رَبِيعٍ إِلَى رَمَضَانَ ثُمَّ إِنَّ اللهَ تَبَارَكَ وَتَعَالَى فَرَضَ عَلَيْهِ شَهْرَ رَمَضَانَ فَأَنْزَلَ عَلَيْهِ {كُتِبَ عَلَيْكُمُ الصِّيَامُ كَمَا كُتِبَ عَلَى الَّذِينَ مِنْ قَبْلِكُمْ} [البقرة 183] وَذَكَرَ بَاقِيَ الْحَدِيثِ هَذَا مُرْسَلٌ عَبْدُ الرَّحْمَنِ لَمْ يُدْرِكْ مُعَاذَ بْنَ جَبَلٍ