“The Messenger of Allah (ﷺ) said: ‘Whoever sleeps and misses Witr, or forgets it, let him pray it when morning comes, or when he remembers.’”

Sunan Ibn Majah Book 5, Hadith 386