The Messenger of Allah ﷺ prayed Witr at all times of the night, at the beginning, in the middle and at the end, then in the end he settled on praying Witr at the end of the night
مِنْ كُلِّ اللَّيْلِ قَدْ أَوْتَرَ رَسُولُ اللهِ ﷺ مِنْ أَوَّلِهِ وَأَوْسَطِهِ وَآخِرِهِ وَانْتَهَى وِتْرُهُ إِلَى آخِرِ اللَّيْلِ