When should the opening supplication (du’a al-istiftah) be recited?
There is no clear text specifying the opening supplication in the Eid prayer, but the scholars differ on whether the opening supplication should be recited after the opening takbir (takbirat al-tahrimah) and before the additional takbirs, or after the additional takbirs and before the recitation.
The school of al-Shafi’i (may Allah have mercy on him):
The position of Imam al-Shafi’i (may Allah have mercy on him) is that the opening supplication should be made immediately after the opening takbir, then the Eid takbirs are said, after that the seeking of refuge (ta’awwudh) is recited, then the recitation is made.
The position of Imam Ahmad ibn Hanbal (may Allah have mercy on him):
The position of Imam Ahmad ibn Hanbal (may Allah have mercy on him) is that the opening supplication is recited after the Eid takbirs. Al-Khallal preferred this view, and al-Awza’i (may Allah have mercy on him) also holds this position, because the opening supplication is connected to the seeking of refuge (istiadhah) (reciting اعوذ بالله من الشيطان الرحيم), and the place of the seeking of refuge is before the recitation.
Abu Yusuf (may Allah have mercy on him) said: The seeking of refuge should be recited after the opening supplication and before the Eid takbirs, so that no separation occurs between the opening supplication and the seeking of refuge.
Summary:
The summary of this discussion is that whichever of the above ways is adopted is permissible.
Because no clear text is established on this matter, all the ways are permissible on the basis of analogy (qiyas) and juristic reasoning (ijtihad).