[Machine] I witnessed Eid Al-Adha and Eid Al-Fitr with Abu Hurayrah. He performed the takbeer (saying "Allahu Akbar") seven times before the first rakah, and five times before the second rakah, before reciting the Quran. This is according to the narration of Malik and Shu'ayb, with some additional details. Marwan appointed him as its governor in Madinah.
شَهِدْتُ الْأَضْحَى وَالْفِطْرَ مَعَ أَبِي هُرَيْرَةَ فَكَبَّرَ فِي الرَّكْعَةِ الْأُولَى سَبْعَ تَكْبِيرَاتٍ قَبْلَ الْقِرَاءَةِ وَفِي الْآخِرَةِ خَمْسَ تَكْبِيرَاتٍ قَبْلَ الْقِرَاءَةِ لَفْظُ حَدِيثِ مَالِكٍ وَحَدِيثُ شُعَيْبٍ بِمَعْنَاهُ وَزَادَ فِي رِوَايَتِهِ وَهِيَ السُّنَّةُ وَزَادَ فِي أَوَّلِهِ اسْتَخْلَفَ مَرْوَانُ إِيَّاهُ عَلَى الْمَدِينَةِ