The Prophet (ﷺ) said: If anyone oversleeps and misses the witr, or forgets it, he should pray when he remembers.
Sunan Abi Dawud Book 8, Hadith 16