The Messenger of Allah ﷺ prayed Witr at the beginning of the night and at the end and in the middle. And in the end he settled on praying Witr just before dawn.
أَوْتَرَ رَسُولُ اللهِ ﷺ مِنْ أَوَّلِ اللَّيْلِ وَآخِرِهِ وَأَوْسَطِهِ فَانْتَهَى وِتْرُهُ إِلَى السَّحَرِ