Abdullah bin Umar reported,

The Messenger of Allah ﷺ, whenever he went out on the day of Eid, would order that a spear be set up in front of him. He would then pray facing it with the people behind him. He used to do this while traveling, and from that practice the rulers adopted it.

Azami 2536

Sahih

عن عبد الله بن عمر

أن رسول الله ﷺ كان إذا خرج يوم العيد أمر بالحربة فتوضع بين يديه فيصلي إليها والناس وراءه، وكان يفعل ذلك في السفر، فمن ثم اتخذها الأمراء.

الأعظمي 2536صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Prayer
Chapter
Sutrah
Section
Imam's sutrah is the sutrah for those behind him
Numbering
Jami al-Kamil 2536 (2nd edition)
Azami 2536