Authentic Supplication Number 77.

When the Messenger ¬†would stand to the salat he would say: Wajjahtu wajhiya lil-lathee fatara ‘as-samawati wal ‘ardha haneefan wa ma ‘ana minal-mushrikeena, ‘inna salatee wa nusukee wa mahyaya wa mamatee lil-lahi rabbil-alameena, la shareeka lahu wa bithalika ‘umirto wa ‘ana minal-muslimeena, ‘allahumma ‘anta ‘al-maliku, la ‘ilaha ‘illa ‘anta, ‘anta rabbee wa ‘ana `abduka, thalamtu nafsi, wa`taraftu bithambee, faghfirlee thunoobee jamee`an, ‘innahu la yaghfiru ‘ath-thunooba ‘illa ‘anta, wahdinee li’ahsanil-‘akhlaqi, la yahdee li’ahsaniha ‘illa ‘anta, was-srif `annee sayyi’aha la yasrifu `annee sayyi’aha ‘illa ‘anta, labbayka wa sa`dayka, wal khayru kulluhu fee yadeyka, wash-sharru laysa ‘ilayka, ‘ana bika wa ‘ilayka, tabarakta wa ta`alayta, ‘astaghfiruka wa ‘atoobu ‘ilayka (92).

(92) I have directed my face to The Creator of the Heavens and Earth, sincerely, and I am not one of those that associate partners [with my Creator], my salat, my [animal] sacrifice, my living, and my dying are all to Allah the Lord of the Worlds, no partner does He have. With that I have been commanded and I am of the Muslims. O’ my ‘ilah You are the King, there is no ‘ilah except You. You are my Lord and I am your bondservant, I have wronged myself and I have confessed of my sin, so forgive me my sins, all of them. None forgives sins except You! Guide me to the best of conduct, for none guides to the best of conduct except You. And push away from me the bad of it for none can push away the bad of it except You. I respond to your call, and I am obedient to your orders, all Good is in your Hands, and the evil is not [a means of getting close] to You, I am by You, and to You, Blessed are Thee and Exalted, I ask your forgiveness and I repent unto You.”

Further Explanation: Ibn Taymiya said in Al-Kalim At-Tayyib: “[Know that the belief of the people of truth (hadeeth scholars, jurist, the companions, the tabi’een, and the Muslim scholars that succeeded them): is that all things, the good, and the evil, their benefit, and their harm], are all from Allah The Exalted, and by his will and decree. Therefore, there is a need to restrict the interpretation of the above hadeeth. The scholars have addressed this issue, and one such address, by An-nadr bin Shumail and the Imam’s that came after him, is that it means: the evil is not a way of getting close to you. The second is that evil does not rise up to you, but it is the good sayings that ascend. The third is that, in good manners, evil is not ascribed to you, for it is not said: O’ Creator of the evil,- even if He is its Creator; just as it is not said O’ Creator of the Pigs, even if He is their Creator. The fourth is that it is not evil when its relation to Your Wisdom is considered, for you do not create anything toyfully.

Reported by Muslim, and is #65 in The Authentic of Good Sayings.