Al-Ilmam bi-Ahadith al-Ahkam 398
وَعَن عَمْرو بن شُعَيْب، عَن أَبِيه، عَن جده: " أَن رَسُول الله ﷺ كبَّر فِي الْعِيدَيْنِ: فِي الأولَى ﷺ سبعا قبل الْقِرَاءَة، وَفِي الْأَخِيرَة خمْسا قبل الْقِرَاءَة ". أخرجه التِّرْمِذِيّ وَاسْتَحْسنهُ فِي " الْجَامِع "، وَذكر الْبَيْهَقِيّ عَنهُ عَن البُخَارِيّ أَنه صحّح الحَدِيث.
And from ʿAmr ibn Shuʿayb, from his father, from his grandfather: "The Messenger of Allah ﷺ said the takbir in the two ʿEids seven times in the first [rakʿah] before the recitation, and five times in the last before the recitation." At-Tirmidhi recorded it and considered it good in "al-Jamiʿ", and al-Bayhaqi mentioned from him that al-Bukhari graded the hadith sound.