Burayd bin Abi Maryam (may Allah have mercy on him) said: I heard Sayyiduna Abdullah bin Abbas (may Allah be pleased with them both) and Muhammad bin Ali ibn al-Hanafiyyah (may Allah have mercy on him) saying that the Prophet (peace and blessings be upon him) used to recite these words in the morning prayer and in the witr of the night: 'Allahumma-hdini fiman hadayt, wa 'afini fiman 'afayt, wa tawallani fiman tawallayt, wa barik li fima a'tayt, wa qini sharra ma qadayt, fa innaka taqdi wa la yuqda 'alayk, wa innahu la yadhillu man walayt, tabarakta Rabbana wa ta'alayt' "O Allah, guide me and include me among those whom You have blessed with guidance; grant me well-being and include me among those whom You have granted well-being; include me among those whom You have taken as Your friends and make me Your friend; bless me in whatever You have given me; and keep me safe and secure from the evil You have decreed. Indeed, it is You who decrees, and no decree can be made against You, and whoever You befriend can never be humiliated. O our Lord, Blessed are You and Exalted."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الصلاة / 3140