It was narrated that 'Ali (رضي الله عنه) said: At different times of the night the Messenger of Allah ﷺ prayed Witr at the beginning, in the middle and at the end. Then he settled on praying Witr at the end of the night.
The Prophet Muhammad was an example for all Muslims in his devotion to Allah and his dedication to prayer even when he was tired or busy with other matters. He showed us that we should prioritize our relationship with Allah over everything else in life and make sure we take time out each day for worshiping Him alone. We can learn from this hadith that consistency is key when it comes to religious practices such as prayer and that no matter how busy or tired we may be, we should always make time for Allah's remembrance each day.