Sunan Abi Dawud
Hadith #447
Narrated Abdullah ibn Mas'ud: We proceeded with the Messenger of Allah (ﷺ) on the occasion of al-Hudaybiyyah. The Messenger of Allah (ﷺ) said: Who will keep watch for us? Bilal said: I (shall do). The overslept till the sun arose. The Prophet (ﷺ) awoke and said: Do as you used to do (i.e. offer prayer as usual). Then we did accordingly. He said: Anyone who oversleeps or forgets (prayer) should do similarly