Hasan ibn Ali reported: The Messenger of Allah صلى الله عليه وسلم taught me some words to say in the Witr prayer, “O Allah, guide me among those you have guided; pardon me among those you have pardoned; protect me among those you have protected; bless me in what you have given me; and save me from the evil of what You have decreed. Indeed, you (alone) decree and none can pass decree upon you. Indeed, he cannot be humiliated who is protected by You. Blessed are You, our Lord, the Exalted.”
[Sunan At-Tirmidhi, Book 3, Number 464, Grade: Hasan]
Book of Witr Prayer, Chapter: What is related of special supplications in the Witr prayer
قَالَ الْحَسَنُ بْنُ عَلِيٍّ رَضِيَ اللَّهُ عَنْهُمَا عَلَّمَنِي رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ كَلِمَاتٍ أَقُولُهُنَّ فِي الْوِتْرِ اللَّهُمَّ اهْدِنِي فِيمَنْ هَدَيْتَ وَعَافِنِي فِيمَنْ عَافَيْتَ وَتَوَلَّنِي فِيمَنْ تَوَلَّيْتَ وَبَارِكْ لِي فِيمَا أَعْطَيْتَ وَقِنِي شَرَّ مَا قَضَيْتَ فَإِنَّكَ تَقْضِي وَلَا يُقْضَى عَلَيْكَ وَإِنَّهُ لَا يَذِلُّ مَنْ وَالَيْتَ تَبَارَكْتَ رَبَّنَا وَتَعَالَيْتَ
قَالَ أَبُو عِيسَى هَذَا حَدِيثٌ حَسَنٌ
سنن الترمذي » أبواب الوتر » باب ما جاء في القنوت في الوتر