Answer from the AI assistant
If you missed the Fajr prayer, the Prophet ﷺ taught that you should pray it as soon as you remember it. Since the prayer is owed as soon as you wake up or recall it, there is no need to wait for the next prayer time. Make it up right away.
The Prophet ﷺ said: "Whoever forgets a prayer should perform it as soon as he remembers it; there is no expiation for it except that." He then recited the verse "and establish prayer for My remembrance" [Ṭā-Hā: 14]. (Anas ibn Mālik, Bukhārī & Muslim [Hadith narrated by Al-Bukhari and Muslim])
The same principle applies to the Witr. If you slept before praying it or forgot it, pray it as soon as you remember it. (Abū Saʿīd al-Khudrī, Ibn Mājah, al-Tirmidhī, Abū Dāwūd, Aḥmad [Hadith narrated by Ibn Majah, At-Tirmidhi, Abu Dawud and others])
So in practice: as soon as you wake up, perform the Fajr prayer (2 rakʿāt), ideally after making wuḍūʾ. Then continue your day. If you feel any doubt about the exact details, such as whether the prayer was really due or how to count the rakʿāt, it is good to ask a qualified scholar.
Practical advice: set a second alarm or ask someone to wake you, so you can avoid missing Fajr in the future.
A tool on this site can help