[Machine] Ibn Umar used to say: "Whoever prays at night, let him make the Witr prayer his last prayer. For the Messenger of Allah ﷺ commanded that. So, when it is dawn, the night prayer and the Witr are gone. For the Messenger of Allah ﷺ said: ‘Perform the Witr prayer before dawn.'" (Sahih)
أَنَّ ابْنَ عُمَرَ كَانَ يَقُولُ مَنْ صَلَّى اللَّيْلَ فَلْيَجْعَلْ آخِرَ صَلَاتِهِ وِتْرًا فَإِنَّ رَسُولَ اللَّهِ ﷺ أَمَرَ بِذَلِكَ فَإِذَا كَانَ الْفَجْرُ فَقَدْ ذَهَبَ كُلُّ صَلَاةِ اللَّيْلِ وَالْوِتْرُ فَإِنَّ رَسُولَ اللَّهِ ﷺ قَالَ «أَوْتِرُوا قَبْلَ الْفَجْرِ» صحيح