ʿAli bin Abi Talib ؓ came out to us when we were in the mosque and said: Where is the one who was asking about Witr? Those among us who had started the first rakʿah added a second to it so as to make it even, then we gathered around him and he said: The Messenger of Allah ﷺ used to pray Witr at the beginning of the night, then he prayed Witr in the middle of the night, then he settled on praying Witr at this time. He said: That was when dawn was breaking.
عَنِ الْوَتْرِ؟ فَمَنْ كَانَ مِنَّا فِي رَكْعَةٍ شَفَعَ إِلَيْهَا أُخْرَى حَتَّى اجْتَمَعْنَا إِلَيْهِ فَقَالَ إِنَّ رَسُولَ اللهِ ﷺ كَانَ يُوتِرُ فِي أَوَّلِ اللَّيْلِ ثُمَّ أَوْتَرَ فِي وَسَطِهِ ثُمَّ أَثْبَتَ الْوَتْرَ فِي هَذِهِ السَّاعَةِ قَالَ وَذَلِكَ عِنْدَ طُلُوعِ الْفَجْرِ