Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
nasai:896ʿAmr b. ʿUthmān b. Saʿīd > Shurayḥ b. Yazīd al-Ḥaḍramī > Shuʿayb b. Abū Ḥamzah > Muḥammad b. al-Munkadir > Jābir b. ʿAbdullāh

"When the Prophet ﷺ started to pray, he would say the takbir, then say: 'Inna salati wa nusuki wa mahyaya wa mamati lillahi rabbil-alamin, la sharika lahu, wa bidhalika umirtu wa ana min al-muslimin. Allahummahdini liahsanil-amali wa ahsanil-akhlaqi la yahdi li ahsaniha illa anta wa qini sayy'al-a'mali wa sayy'al-ahaqi la yaqi sayy'aha illa ant. (Indeed my salah (prayer), my sacrifice, my living, and my dying are for Allah, the Lord of all that exists. He has no partner. And of this I have been commanded, and I am one of the Muslims. O Allah, guide me to the best of deeds and the best of manners, for none can guide to the best of them but You. And protect me from bad deeds and bad manners, for none can protect against them but You.) "  

النسائي:٨٩٦أَخْبَرَنَا عَمْرُو بْنُ عُثْمَانَ بْنِ سَعِيدٍ قَالَ حَدَّثَنَا شُرَيْحُ بْنُ يَزِيدَ الْحَضْرَمِيُّ قَالَ أَخْبَرَنِي شُعَيْبُ بْنُ أَبِي حَمْزَةَ قَالَ أَخْبَرَنِي مُحَمَّدُ بْنُ الْمُنْكَدِرِ عَنْ جَابِرِ بْنِ عَبْدِ اللَّهِ قَالَ

كَانَ النَّبِيُّ ﷺ إِذَا اسْتَفْتَحَ الصَّلاَةَ كَبَّرَ ثُمَّ قَالَ إِنَّ صَلاَتِي وَنُسُكِي وَمَحْيَاىَ وَمَمَاتِي لِلَّهِ رَبِّ الْعَالَمِينَ لاَ شَرِيكَ لَهُ وَبِذَلِكَ أُمِرْتُ وَأَنَا مِنَ الْمُسْلِمِينَ اللَّهُمَّ اهْدِنِي لأَحْسَنِ الأَعْمَالِ وَأَحْسَنِ الأَخْلاَقِ لاَ يَهْدِي لأَحْسَنِهَا إِلاَّ أَنْتَ وَقِنِي سَيِّئَ الأَعْمَالِ وَسَيِّئَ الأَخْلاَقِ لاَ يَقِي سَيِّئَهَا إِلاَّ أَنْتَ  


See similar narrations below:

Collected by Nasāʾī's Kubrá
nasai-kubra:972ʿAmr b. ʿUthmān b. Saʿīd > Shurayḥ b. Yazīd al-Ḥaḍramī > Shuʿayb > Muḥammad b. al-Munkadir > Jābir b. ʿAbdullāh

"When the Prophet ﷺ started to pray, he would say the takbir, then say: 'Inna salati wa nusuki wa mahyaya wa mamati lillahi rabbil-alamin, la sharika lahu, wa bidhalika umirtu wa ana min al-muslimin. Allahummahdini liahsanil-amali wa ahsanil-akhlaqi la yahdi li ahsaniha illa anta wa qini sayy'al-a'mali wa sayy'al-ahaqi la yaqi sayy'aha illa ant. (Indeed my salah (prayer), my sacrifice, my living, and my dying are for Allah, the Lord of all that exists. He has no partner. And of this I have been commanded, and I am one of the Muslims. O Allah, guide me to the best of deeds and the best of manners, for none can guide to the best of them but You. And protect me from bad deeds and bad manners, for none can protect against them but You.) " (Using translation from Nasāʾī 896)   

الكبرى للنسائي:٩٧٢أَخْبَرَنَا عَمْرُو بْنُ عُثْمَانَ بْنِ سَعِيدٍ قَالَ حَدَّثَنَا شُرَيْحُ بْنُ يَزِيدَ الْحَضْرَمِيُّ قَالَ أَخْبَرَنِي شُعَيْبٌ قَالَ حَدَّثَنِي مُحَمَّدُ بْنُ الْمُنْكَدِرِ عَنْ جَابِرِ بْنِ عَبْدِ اللهِ قَالَ

كَانَ النَّبِيُّ ﷺ إِذَا اسْتَفْتَحَ الصَّلَاةَ كَبَّرَ ثُمَّ قَالَ «إِنَّ صَلَاتِي وَنُسُكِي وَمَحْيَايَ وَمَمَاتِي لِلَّهِ رَبِّ الْعَالَمِينَ لَا شَرِيكَ لَهُ وَبِذَلِكَ أُمِرْتُ وَأَنَا مِنَ الْمُسْلِمِينَ اللهُمَّ اهْدِنِي لِأَحْسَنِ الْأَعْمَالِ وَأَحْسَنِ الْأَخْلَاقِ لَا يَهْدِي لِأَحْسَنِهَا إِلَّا أَنْتَ وَقِنِي سَيِّئَ الْأَعْمَالِ وَسَيِّئَ الْأَخْلَاقِ لَا يَقِي سَيِّئَهَا إِلَّا أَنْتَ» قَالَ أَبُو عَبْدِ الرَّحْمَنِ هُوَ حَدِيثٌ حِمْصِيٌّ رَجَعَ إِلَى الْمَدِينَةِ ثُمَّ إِلَى مَكَّةَ