عَنْ أَنَسٍ قَالَ: قَدِمَ النَّبِيُّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ الْمَدِينَةَ وَلَهُمْ يَوْمَانِ يَلْعَبُونَ فِيهِمَا فَقَالَ: «مَا هَذَانِ الْيَوْمَانِ؟» قَالُوا: كُنَّا نَلْعَبُ فِيهِمَا فِي الْجَاهِلِيَّةِ فَقَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ:" قَدْ أَبْدَلَكُمُ اللَّهُ بِهِمَا خَيْرًا مِنْهُمَا: يَوْمَ الْأَضْحَى وَيَوْمَ الْفِطْرِ ". رَوَاهُ أَبُو دَاوُد
Translation
Ja'far b. Muhammad told in mursal form that the Prophet, Abu Bakr and ‘Umar said “God is most great” at the two festivals and when praying for rain seven times in the first rak'a and five times in the second. They prayed before the sermon, and recited the Qur’an in a loud voice. Shafi‘i transmitted it.