It was narrated that Ibn ‘Umar said:“When the Prophet (ﷺ) prayed on the day of ‘Eid or on another occasion, a small spear was set up in front of him, and he prayed facing it, and the people were behind him.” Nafi` said: It is from here that the leaders have taken this practice
Hadith No. 1305
Sunan Ibn Majah
Gradings:
Al-Albani:
Sahih
Muhammad Fouad Abd al-Baqi:
Sahih
Zubair Ali Zai:
Sahih - Bukhari And Muslim