The Messenger of Allah ﷺ had a mat which was spread out during the day, and at night he would set it up as a partition and pray behind it.
حدثنا أبو بكر بن أبي شيبة حدثنا محمد بن بشر عن عبيد الله بن عمر حدثني سعيد بن أبي سعيد عن أبي سلمة بن عبد الرحمن
كان لرسول الله ﷺ حصير يبسط بالنهار ويحتجره بالليل يصلي إليه
GradingBukhari narrated it, adhan, chapter on night prayer, no. 730, and Muslim, prayer of the traveler, chapter on the merit of consistent deeds such as night prayer and the like, no. 782, from the hadith of Saeed Maqburi, at greater length.