He heard the Messenger of Allah (ﷺ) say: "Prayer at night is two rak'ahs by two rak'ahs, then when you fear tat dawn will break, pray witr with one rak'ah."
Reported by An-Nasa’i (No. 1695) and Ahmad (No. 5197).
وعن ابن عمر رضي الله عنهما قال: كان رسول الله صلى الله عليه وسلم يصلي من الليل مثنى مثنى، ويوتر بركعة من آخر الليل، ويصلي الركعتين قبل صلاة الغداة، وكأن الأذان بأذنيه". ((متفق عليه)).
A man asked the Prophet (ﷺ) while he was on the pulpit: What do you say about the night prayer? He (ﷺ) said: "Two by two (i.e., in sets of two Rak‘ahs). When he fears that dawn is approaching, he should pray one (Rak‘ah), which will make what he has prayed Witr (odd)." And he (ﷺ) used to say: "Make…
مَثْنَى مَثْنَى، فَإِذَا خَشِيَ الصُّبْحَ صَلَّى وَاحِدَةً، فَأَوْتَرَتْ لَهُ مَا صَلَّى ". وَإِنَّهُ كَانَ يَقُولُ اجْعَلُوا آخِرَ صَلاَتِكُمْ وِتْرًا، فَإِنَّ النَّبِيَّ صلى الله عليه وسلم أَمَرَ بِهِ.