The Book of Qiyam Al-Lail (The Night Prayer) and Voluntary Prayers During the Day
20/64. Chapter:
How many rak'ahs should a person pray who slept and missed (praying Qiyam Al-Lail) or was prevented from doing so by pain
Sunan an-Nasai
أَخْبَرَنَا قُتَيْبَةُ بْنُ سَعِيدٍ، قَالَ حَدَّثَنَا أَبُو عَوَانَةَ، عَنْ قَتَادَةَ، عَنْ زُرَارَةَ، عَنْ سَعْدِ بْنِ هِشَامٍ، عَنْ عَائِشَةَ، أَنَّ رَسُولَ اللَّهِ صلى الله عليه وسلم كَانَ إِذَا لَمْ يُصَلِّ مِنَ اللَّيْلِ مَنَعَهُ مِنْ ذَلِكَ نَوْمٌ أَوْ وَجَعٌ صَلَّى مِنَ النَّهَارِ ثِنْتَىْ عَشْرَةَ رَكْعَةً .
It was narrated from Aishah that: 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 1789In-book reference : Book 20, Hadith 192English translation : Vol. 2, Book 20, Hadith 1790