'A'isha reported that when the Messenger of Allah ﷺ missed the night prayer due to pain or any other reason, he observed twelve rak'ahs during the daytime.
أَنَّ رَسُولَ اللَّهِ ﷺ كَانَ إِذَا فَاتَتْهُ الصَّلاَةُ مِنَ اللَّيْلِ مِنْ وَجَعٍ أَوْ غَيْرِهِ صَلَّى مِنَ النَّهَارِ ثِنْتَىْ عَشْرَةَ رَكْعَةً