When the Messenger of Allah (may Allah's peace and blessings be upon him) missed prayer at night because of sickness or otherwise, he would pray twelve Rak‘ahs during the daytime
عن عائشة رضي الله عنها قالت: كان رسولُ اللهِ صلى الله عليه وسلم إذا فَاتَتْهُ الصَّلَاةُ مِنَ الليلِ مِن وَجَعٍ أَوْ غَيْرِهِ، صَلَّى من النَّهَارِ ثِنْتَيْ عَشْرَةَ رَكْعَةً.
‘Ā'ishah (may Allah be pleased with her) reported: When the Messenger of Allah (may Allah's peace and blessings be upon him) missed prayer at night because of sickness or otherwise, he would pray twelve Rak‘ahs during the daytime.
Narrated by MuslimGradeAuthentic hadith
Explanation
If the Prophet (may Allah's peace and blessings be upon him) missed the voluntary night prayer because of sickness or something else, he would make it up in the daytime. At night he would pray eleven Rak‘ahs as Witr, but since the Witr time passed, he would pray it as an even number, i.e. twelve Rak‘ahs instead of eleven.
Reference
دليل الفالحين لطرق رياض الصالحين، لابن علان، نشر دار الكتاب العربي.
نزهة المتقين شرح رياض الصالحين، نشر: مؤسسة الرسالة، الطبعة: الرابعة عشر، 1407ه 1987م.
شرح رياض الصالحين، لابن عثيمين، نشر: دار الوطن للنشر، الرياض، الطبعة: 1426ه.
بهجة الناظرين شرح رياض الصالحين لسليم الهلالي، ط1، دار ابن الجوزي، الدمام، 1415ه.
المعجم الوسيط، نشر: دار إحياء التراث العربي، بيروت – لبنان، الطبعة: الثانية.
صحيح مسلم، تحقيق: محمد فؤاد عبد الباقي، نشر: دار إحياء التراث العربي – بيروت.
Every ḥadīth, grade, explanation and benefit here is shown exactly as HadeethEnc.com publishes it, under its terms for republication. The grade names no grader. The translations and explanations are its authors’ own, and some state rulings; Sabīl’s reviewers have not examined them. The Arabic ḥadīth is the text. Source: HadeethEnc.com