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