Sahih al-Bukhari
Sahih al-Bukhari 494
حَدَّثَنَا إِسْحَاقُ، قَالَ حَدَّثَنَا عَبْدُ اللَّهِ بْنُ نُمَيْرٍ، قَالَ حَدَّثَنَا عُبَيْدُ اللَّهِ، عَنْ نَافِعٍ، عَنِ ابْنِ عُمَرَ، أَنَّ رَسُولَ اللَّهِ صلى الله عليه وسلم كَانَ إِذَا خَرَجَ يَوْمَ الْعِيدِ أَمَرَ بِالْحَرْبَةِ فَتُوضَعُ بَيْنَ يَدَيْهِ، فَيُصَلِّي إِلَيْهَا وَالنَّاسُ وَرَاءَهُ، وَكَانَ يَفْعَلُ ذَلِكَ فِي السَّفَرِ، فَمِنْ ثَمَّ اتَّخَذَهَا الأُمَرَاءُ.
Ishaq narrated to us: Abd Allah ibn Numayr narrated to us: Ubayd Allah narrated to us, from Nafi‘, from Ibn Umar, that whenever the Messenger of Allah went out on Eid day, he would order a spear to be placed in front of him and pray facing it, with the people behind him. He did this while traveling as well; from this practice, rulers later adopted the spear as a prayer marker.