سنن ابن ماجه Sunan Ibn Majah كتاب إقامة الصلاة والسنة Establishing the Prayer and the Sunnah Regarding Them
. بَابُ : مَا جَاءَ فِي الْقُنُوتِ فِي الْوِتْرِ

Chapter: What was narrated concerning the Qunut in Witr

2 hadith
Hadith 1178
حَدَّثَنَا أَبُو بَكْرِ بْنُ أَبِي شَيْبَةَ ، حَدَّثَنَا شَرِيكٌ ، عَنْ أَبِي إِسْحَاق ، عَنْ بُرَيْدِ بْنِ أَبِي مَرْيَمَ ، عَنْ أَبِي الْحَوْرَاءِ ، عَنِ الْحَسَنِ بْنِ عَلِيٍّ ، قَالَ : " عَلَّمَنِي جَدِّي رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ كَلِمَاتٍ أَقُولُهُنَّ فِي قُنُوتِ الْوِتْرِ : اللَّهُمَّ عَافِنِي فِيمَنْ عَافَيْتَ ، وَتَوَلَّنِي فِيمَنْ تَوَلَّيْتَ ، وَاهْدِنِي فِيمَنْ هَدَيْتَ ، وَقِنِي شَرَّ مَا قَضَيْتَ ، وَبَارِكْ لِي فِيمَا أَعْطَيْتَ ، إِنَّكَ تَقْضِي وَلَا يُقْضَى عَلَيْكَ ، إِنَّهُ لَا يَذِلُّ مَنْ وَالَيْتَ ، سُبْحَانَكَ رَبَّنَا تَبَارَكْتَ وَتَعَالَيْتَ " .
´It was narrated that Al-Hasan bin ‘Ali said:` “My grandfather, the Messenger of Allah (ﷺ), taught me some words to say in Qunut of Witr: Allahumma ‘afini fiman ‘afait, wa tawallani fiman tawallait, wahdini fiman hadait, wa qini sharra ma qadait, wa barik li fima a’tait. Innaka taqdi wa la yuqda ‘alaik, innahu la yudhillu man walait. Subhanaka rabbana tabarakta wa ta’alait (O Allah, pardon me along with those whom You have pardoned, be an ally to me along with those whom You are an ally to, guide me along with those whom You have guided, protect me from the evil that You have decreed, and bless for me that which You have bestowed. For verily You decree and none can decree over You. He whom You support can never be humiliated. Glory is to You, our Lord, You are Blessed and Exalted).”
Hadith Reference Sunan Ibn Majah / Establishing the Prayer and the Sunnah Regarding Them / Hadith: 1178
Hadith Grading الألبانی: صحيح  |  زبیر علی زئی: صحيح
Hadith Takhrij « سنن ابی داود/الصلاة 340 ( 1425 ، 1426 ) ، سنن الترمذی/الصلاة 224 ( 464 ) ، سنن النسائی/قیام اللیل 42 ( 1746 ) ، ( تحفة الأشراف : 3404 ) ، وقد أخرجہ : مسند احمد ( 1/199 ، 200 ) ( صحیح ) »
Hadith 1179
حَدَّثَنَا أَبُو عُمَرَ حَفْصُ بْنُ عَمْرٍو ، حَدَّثَنَا بَهْزُ بْنُ أَسَدٍ ، حَدَّثَنَا حَمَّادُ بْنُ سَلَمَةَ ، حَدَّثَنِي هِشَامُ بْنُ عَمْرٍو الْفَزَارِيُّ ، عَنْ عَبْدِ الرَّحْمَنِ بْنِ الْحَارِثِ بْنِ هِشَامٍ الْمَخْزُومِيِّ ، عَنْ عَلِيِّ بْنِ أَبِي طَالِبٍ ، أَنّ النَّبِيَّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ : " كَانَ يَقُولُ فِي آخِرِ وِتْرِهِ : اللَّهُمَّ إِنِّي أَعُوذُ بِرِضَاكَ مِنْ سُخْطِكَ ، وَأَعُوذُ بِمُعَافَاتِكَ مِنْ عُقُوبَتِكَ ، وَأَعُوذُ بِكَ مِنْكَ لَا أُحْصِي ثَنَاءً عَلَيْكَ أَنْتَ كَمَا أَثْنَيْتَ عَلَى نَفْسِكَ " .
´It was narrated from ‘Ali bin Abi Talib that the Prophet (ﷺ) used to say at the end of Witr:` “Allahumma inni a’udhu biridaka min sakhatika, wa a’udhu bimu’afatika min ‘uqubatika, wa a’udhu bika minka, la uhsi thana’an ‘alaika, Anta kama athnaita ‘ala nafsika (O Allah, I seek refuge in Your pleasure from Your wrath, and I seek refuge in Your forgiveness from your punishment, and I seek refuge in You from You. I cannot enumerate Your praise, You are as You have praised Yourself).”
Hadith Reference Sunan Ibn Majah / Establishing the Prayer and the Sunnah Regarding Them / Hadith: 1179
Hadith Grading الألبانی: صحيح  |  زبیر علی زئی: إسناده صحيح
Hadith Takhrij « سنن ابی داود/الصلاة 340 ( 1427 ) ، سنن الترمذی/الدعوات 113 ( 3566 ) ، ( تحفة الأشراف : 10207 ) ، وقد أخرجہ : سنن النسائی/قیام اللیل 43 ( 1749 ) ، مسند احمد ( 1/96 ، 118 ، 150 ) ( صحیح ) »