It wasnarrated that Ibn 'Umar said:
"A small spear (Harbah) would bebrought out to the Prophet (ﷺ) when he was travelling; he wouldplant it (in the ground) to perform prayer while facing it." (PT)
English reference (PT): Vol. 1, Book 5, Hadith 941 (PT)
Arabic reference (PT): Book 5, Hadith 994 (PT)