Sunan an-Nasa'i #1565
The Book of the Prayer for the Two 'Eids 19:10
It was narrated from Ibn 'Umar that:
The Messenger of Allah (ﷺ) used to take out an 'Anazah (a short spear) on the day of Al-Fitr and the day of Al-Adha, plant it in the ground, and pray facing toward it.