Sunan Abi Dawud, Book 8, Hadith 16 (Abu Dawud 1432)

Narrated AbuSa'id al-Khudri:

The Prophet (ﷺ) said: If anyone oversleeps and misses the witr, or forgets it, he should pray when he remembers.