It was narrated that Ibn 'Abbas said:
"The Messenger of Allah (ﷺ) set out at nightfall, then stopped to camp at the end of the night, and he did not wake up until the sun had risen or had partly risen. He did not pray until the sun had risen (fully), then he prayed, and that was the 'middle prayer' (Salat Al-Wusta)."
English reference: Vol. 1, Book 6, Hadith 626
Arabic reference: Book 6, Hadith 632