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.

Abu Dawud 687

Sahih

حدثنا الحسن بن علي حدثنا ابن نمير عن عبيد الله عن نافع

عن ابن عمر

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

أبو داود 687صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Abu Dawud
Book
Prayer
Chapter
What covers the one who prays
Numbering
Darussalam 687
Abu Dawud 687