Sahih Muslim – Hadith No : 501

Ibn Umar reported: When the Messenger of Allah (may peace he upon him) went out on the ‘Id day, he ordered to carry a spear-and it was fixed in front of him, and he said prayer towards its (direction), and the people were behind him. And he did it in the journey, and that is the reason why the Amirs carried it.

Hadith In Arabic Text :

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

Chapter : The Book of Prayers – كتاب الصلاة