Before the mosque was built, the Messenger of Allah ﷺ used to pray in the resting places of sheep.
حدثنا حجاج قال سمعت شعبة يحدث عن أبي التياح قال سمعت
كان رسول الله ﷺ قبل أن يبني المسجد يصلي في مرابض الغنم
Its chain of transmission is sahih, mentioned previously in 12275.