When the Messenger of Allah (ﷺ) did not pray at night because he was prevented from doing so by sleep- meaning, sleep overwhelmed him- or by pain, he would pray twelve rak'ahs during the day.
Reference: Sunan an-Nasa'i 1789 In-book : Book 20, Hadith 192 English translation : Vol. 2, Book 20, Hadith 1790
Help us gift a modern, ad-free Islamic application for the Muslim Ummah. Your donation will be recorded as Sadaqah Jariyah in your book of deeds, In Sha Allah.