Language:
كتاب الصلاة
8  
Prayers (Salat)
(90)
Chapter: The Sutra of the Imam is also a Sutra for those who are behind him
(90)
باب سُتْرَةُ الإِمَامِ سُتْرَةُ مَنْ خَلْفَهُ
Sahih al-Bukhari 494

Narrated Ibn `Umar:

Whenever Allah's Messenger (ﷺ) came out on `Id day, he used to order that a Harba [??] (a short spear) to be planted in front of him (as a Sutra for his prayer) and then he used to pray facing it with the people behind him and used to do the same while on a journey. After the Prophet (ﷺ) , this practice was adopted by the Muslim rulers (who followed his traditions).

حَدَّثَنَا إِسْحَاقُ، قَالَ حَدَّثَنَا عَبْدُ اللَّهِ بْنُ نُمَيْرٍ، قَالَ حَدَّثَنَا عُبَيْدُ اللَّهِ، عَنْ نَافِعٍ، عَنِ ابْنِ عُمَرَ، أَنَّ رَسُولَ اللَّهِ صلى الله عليه وسلم كَانَ إِذَا خَرَجَ يَوْمَ الْعِيدِ أَمَرَ بِالْحَرْبَةِ فَتُوضَعُ بَيْنَ يَدَيْهِ، فَيُصَلِّي إِلَيْهَا وَالنَّاسُ وَرَاءَهُ، وَكَانَ يَفْعَلُ ذَلِكَ فِي السَّفَرِ، فَمِنْ ثَمَّ اتَّخَذَهَا الأُمَرَاءُ‏.‏
Reference : Sahih al-Bukhari 494
In-book reference : Book 8, Hadith 141
USC-MSA web (English) reference : Vol. 1, Book 9, Hadith 473
  (deprecated numbering scheme)