It was narrated from ‘Amr bin Shu’aib, from his father, from his grandfather, that the Prophet (ﷺ) said the Takbir seven times and five times in the ‘Eid prayer.
Sunan Ibn Majah Book 5, Hadith 476