Mishkat al-Masabih 813
وَعَنْ عَلِيَّ بْنَ أَبِي طَالِبٍ رَضِيَ اللَّهُ عَنْهُ قَالَ: كَانَ النَّبِيُّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ إِذَا قَامَ إِلَى الصَّلَاةِ وَفِي رِوَايَةً: كَانَ إِذَا افْتَتَحَ الصَّلَاةَ كَبَّرَ ثُمَّ قَالَ: «وَجَّهْتُ وَجْهِيَ لِلَّذِي فَطَرَ السَّمَاوَاتِ وَالْأَرْضَ حَنِيفًا وَمَا أَنَا مِنَ الْمُشْرِكِينَ إِنَّ صَلَاتِي وَنُسُكِي وَمَحْيَايَ وَمَمَاتِي لِلَّهِ رَبِّ الْعَالَمِينَ لَا شَرِيكَ لَهُ وَبِذَلِكَ أَمَرْتُ وَأَنَا مِنَ الْمُسْلِمِينَ اللَّهُمَّ أَنْتَ الْمَلِكُ لَا إِلَهَ إِلَّا أَنْتَ أَنْتَ رَبِّي وَأَنَا عَبْدُكَ ظَلَمْتُ نَفْسِي وَاعْتَرَفْتُ بِذَنْبِي فَاغْفِرْ لِي ذُنُوبِي جَمِيعًا إِنَّهُ لَا يَغْفِرُ الذُّنُوبَ إِلَّا أَنْتَ وَاهْدِنِي لِأَحْسَنِ الْأَخْلَاقِ لَا يَهْدِي لِأَحْسَنِهَا إِلَّا أَنْتَ وَاصْرِفْ عَنِّي سَيِّئَهَا لَا يَصْرِفُ عَنِّي سَيِّئَهَا إِلَّا أَنْتَ لَبَّيْكَ وَسَعْدَيْكَ وَالْخَيْرُ كُلُّهُ فِي يَدَيْكَ وَالشَّرُّ لَيْسَ إِلَيْكَ أَنَا بِكَ وَإِلَيْكَ تَبَارَكْتَ وَتَعَالَيْتَ أَسْتَغْفِرُكَ وَأَتُوبُ إِلَيْكَ» وَإِذَا رَكَعَ قَالَ: «اللَّهُمَّ لَكَ رَكَعْتُ وَبِكَ آمَنْتُ وَلَكَ أَسْلَمْتُ خَشَعَ لَكَ سَمْعِي وبصري ومخي وعظمي وعصبي» فَإِذا رفع قَالَ: «اللَّهُمَّ رَبَّنَا لَكَ الْحَمْدُ مِلْءَ السَّمَاوَاتِ وملء الأَرْض وملء مَا بَيْنَهُمَا وَمِلْءَ مَا شِئْتَ مِنْ شَيْءٍ بَعْدُ» وَإِذَا سَجَدَ قَالَ: «اللَّهُمَّ لَكَ سَجَدْتُ وَبِكَ آمَنْتُ وَلَكَ أَسْلَمْتُ سَجَدَ وَجْهِي لِلَّذِي خَلَقَهُ وَصُوَّرَهُ وَشَقَّ سَمْعَهُ وَبَصَرَهُ تَبَارَكَ اللَّهُ أَحْسَنُ الْخَالِقِينَ» ثُمَّ يَكُونُ مِنْ آخِرِ مَا يَقُولُ بَيْنَ التَّشَهُّدِ وَالتَّسْلِيمِ: «اللَّهُمَّ اغْفِرْ لِي مَا قَدَّمْتُ وَمَا أَخَّرْتُ وَمَا أَسْرَرْتُ وَمَا أَعْلَنْتُ وَمَا أَسْرَفْتُ وَمَا أَنْتَ أَعْلَمُ بِهِ مِنِّي أَنْتَ الْمُقَدِّمُ وَأَنْتَ الْمُؤَخِّرُ لَا إِلَهَ إِلَّا أَنْتَ» . رَوَاهُ مُسْلِمٌ وَفِي رِوَايَةٍ لِلشَّافِعِيِّ: «وَالشَّرُّ لَيْسَ إِلَيْكَ وَالْمَهْدِيُّ مَنْ هَدَيْتَ أَنَا بِكَ وَإِلَيْك لَا مَنْجَى مِنْكَ وَلَا مَلْجَأَ إِلَّا إِلَيْكَ تَبَارَكْتَ»
And from ʿAli ibn Abi Talib, may Allah be pleased with him, who said: When the Prophet ﷺ stood for the prayer — and in a narration: when he began the prayer — he said takbir, then said: "I have turned my face towards the One who created the heavens and the earth, inclining to truth, and I am not of the polytheists. Indeed my prayer, my sacrifice, my living and my dying are for Allah, Lord of the worlds; He has no partner, with this I have been commanded, and I am of the Muslims. O Allah, You are the King; there is no god but You. You are my Lord and I am Your servant. I have wronged myself and I confess my sin, so forgive me all my sins; none forgives sins but You. Guide me to the best of manners; none guides to the best of them but You. Turn away from me their bad; none turns away from me their bad but You. At Your service and at Your call; all good is in Your hands, and evil is not to You. I exist by You and [return] to You. Blessed and Exalted are You. I seek Your forgiveness and I repent to You." When he bowed, he said: "O Allah, to You I have bowed, in You I have believed, and to You I have submitted. My hearing, my sight, my brain, my bones and my sinews are humbled before You." When he rose, he said: "O Allah, our Lord, to You be praise, filling the heavens, filling the earth, filling what is between them, and filling whatever else You will." When he prostrated, he said: "O Allah, to You I have prostrated, in You I have believed, and to You I have submitted. My face has prostrated to the One who created it, shaped it, and opened its hearing and its sight. Blessed is Allah, the best of creators." Then among the last things he would say between the tashahhud and the taslim was: "O Allah, forgive me what I have sent before and what I have left behind, what I have concealed and what I have made public, what I have done in excess, and what You know better than I. You are the One who brings forward and You are the One who puts back; there is no god but You." Reported by Muslim. And in a narration of ash-Shafiʿi: "And evil is not to You. The guided one is whom You guide. I exist by You and [return] to You. There is no escape from You and no refuge except in You. Blessed are You."