Hasan bin Ali reported,

My grandfather, the Messenger of Allah ﷺ, taught me words to recite in the qunut of the witr prayer."O Allah, grant me well-being among those You have granted well-being, take me as an ally among those You have taken as allies, guide me among those You have guided, protect me from the evil of what You have decreed, and bless me in what You have given. For You decree and none can decree against You. Indeed, no one whom You support is ever humiliated. Glory be to You, our Lord, blessed and exalted are You."

Ibn Majah 1178

Sahih

حدثنا أبو بكر بن أبي شيبة حدثنا شريك عن أبي إسحق عن بريد بن أبي مريم عن أبي الحوراء

عن الحسن بن علي قال

علمني جدي رسول الله ﷺ كلمات أقولهن في قنوت الوتر اللهم عافني فيمن عافيت وتولني فيمن توليت واهدني فيمن هديت وقني شر ما قضيت وبارك لي فيما أعطيت إنك تقضي ولا يقضى عليك إنه لا يذل من واليت سبحانك ربنا تباركت وتعاليت

ابن ماجه 1178صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Ibn Majah
Book
Establishing prayer and the sunnah regarding it
Chapter
Qunut in Witr
Numbering
Darussalam 1178
Ibn Majah 1178