'Aishah (May Allah be pleased with her) reported:
When Messenger of Allah (ﷺ) missed the optional night Salat (Tahajjud) due to pain or any other reason, he would perform twelve Rak'ah during the day time.[Muslim].
Arabic/English book reference: Book 1, Hadith 155