[Machine] The Messenger of Allah ﷺ used to command the warriors when he went out on the day of Eid, and it would be placed in front of him, and he would pray towards it with the people behind him. And he used to do this during travels, so the rulers thereafter adopted it.
أَنَّ رَسُولَ اللهِ ﷺ كَانَ إِذَا خَرَجَ يَوْمَ الْعِيدِ أَمَرَ بِالْحَرْبَةِ فَتُوضَعُ بَيْنَ يَدَيْهِ فَيُصَلِّي إِلَيْهَا وَالنَّاسُ وَرَاءَهُ وَكَانَ يَفْعَلُ ذَلِكَ فِي السَّفَرِ فَمِنْ ثَمَّ اتَّخَذَهَا الْأُمَرَاءُ