عَنْ أَنَسٍ قَالَ: قَدِمَ النَّبِيُّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ الْمَدِينَةَ وَلَهُمْ يَوْمَانِ يَلْعَبُونَ فِيهِمَا فَقَالَ: «مَا هَذَانِ الْيَوْمَانِ؟» قَالُوا: كُنَّا نَلْعَبُ فِيهِمَا فِي الْجَاهِلِيَّةِ فَقَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ:" قَدْ أَبْدَلَكُمُ اللَّهُ بِهِمَا خَيْرًا مِنْهُمَا: يَوْمَ الْأَضْحَى وَيَوْمَ الْفِطْرِ ". رَوَاهُ أَبُو دَاوُد
Translation

Kathir b. ‘Abdallah on his father’s authority quoted his grandfather as saying that at the two festivals the Prophet said “God is most great” seven times in the first rak'a before reciting from the Qur’an, and five times in the last one before reciting. Tirmidhi, Ibn Majah and Darimi transmitted it.