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