Abdullah bin Umar reported,

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

Muslim 1115

Sahih

حدثنا محمد بن المثنى حدثنا عبد الله بن نمير ح و حدثنا ابن نمير واللفظ له حدثنا أبي حدثنا عبيد الله عن نافع

عن ابن عمر

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

مسلم 1115صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Prayer
Chapter
Screen of the one praying
Numbering
Darussalam 1115
Muslim 1115