حَدَّثَنَا أَبُو بَكْرِ بْنُ أَبِي شَيْبَةَ، حَدَّثَنَا شَرِيكٌ، عَنْ أَبِي إِسْحَاقَ، عَنْ بُرَيْدِ بْنِ أَبِي مَرْيَمَ، عَنْ أَبِي الْحَوْرَاءِ، عَنِ الْحَسَنِ بْنِ عَلِيٍّ، قَالَ عَلَّمَنِي جَدِّي رَسُولُ اللَّهِ ـ صلى الله عليه وسلم ـ كَلِمَاتٍ أَقُولُهُنَّ فِي قُنُوتِ الْوِتْرِ ‏"‏ اللَّهُمَّ عَافِنِي فِيمَنْ عَافَيْتَ وَتَوَلَّنِي فِيمَنْ تَوَلَّيْتَ وَاهْدِنِي فِيمَنْ هَدَيْتَ وَقِنِي شَرَّ مَا قَضَيْتَ وَبَارِكْ لِي فِيمَا أَعْطَيْتَ إِنَّكَ تَقْضِي وَلاَ يُقْضَى عَلَيْكَ إِنَّهُ لاَ يَذِلُّ مَنْ وَالَيْتَ سُبْحَانَكَ رَبَّنَا تَبَارَكْتَ وَتَعَالَيْتَ ‏"‏ ‏.‏

It wasnarrated that Al-Hasan bin ‘Ali said: “My grandfather, theMessenger of Allah (PBUH), taught me some words to say in Qunut ofWitr: Allahumma ‘afini fiman ‘afait, wa tawallani fimantawallait,wahdini fiman hadait, wa qini sharra ma qadait, wa barikli fimaa’tait. Innaka taqdi wa la yuqda ‘alaik, innahu layudhillu manwalait. Subhanaka rabbana tabarakta wa ta’alait (OAllah, pardon mealong with those whom You have pardoned, be an allyto me along withthose whom You are an ally to, guide me along withthose whom You haveguided, protect me from the evil that You havedecreed, and bless forme that which You have bestowed. For verilyYou decree and none candecree over You. He whom You support cannever be humiliated. Glory isto You, our Lord, You are Blessed andExalted).” Translation Not Available

Book Ref: Sunan Ibn Majah Book 5 Hadith 1178
Web Ref:  Sunan Ibn Majah Vol 1 Book 5 Hadith 1178