The Prophet ﷺ said the takbir twelve times during the Eid prayer, seven in the first rakah and five in the second, and he did not pray before it or after it.Ubayy said, "This is the view I follow."
حدثنا وكيع حدثنا عبد الله بن عبد الرحمن سمعه من
أن النبي ﷺ كبر في عيد ثنتي عشرة تكبيرة سبعا في الأولى وخمسا في الآخرة ولم يصل قبلها ولا بعدها قال أبي وأنا أذهب إلى هذا