Mishkat al-Masabih 3149
‘Abdallah b. Mas'ud said:
God’s Messenger taught us the tashahhud in the prayer and in case of some need, saying that the tashahhud in the prayer is, “The adorations of the tongue, acts of worship and all good things belong to God. Peace, and God’s mercy and blessings be upon you, O Prophet. Peace be upon us and upon God’s upright servants. I testify that there is no god but God, and I testify that Muhammad is His servant and Messenger.” The tashahhud in case of some need is, “Praise be to God from whom we ask help and pardon. We seek refuge in God from the evils within ourselves. He whom God guides if has no one who can lead him astray, and he whom He leads astray has no one to guide him. I testify that there is no god but God, and   that Muhammad is His servant and Messenger." And one should recite three verses: “You who believe, fear God as He should be feared, and die only as Muslims;” (Al-Qur’an 3:102). “You who believe . . . fear God by whom you ask your mutual rights, and reverence the wombs. God has been watching over you;” (Al-Qur’an 4:1 which has ‘O Mankind.’). “You who believe, if you fear God and say what is true He will make your deeds sound and forgive you your sins. He who obeys God and His Messenger has attained a mighty success” (Al-Qur’an 33:70).
Ahmad, Tirmidhi, Abu Dawud, Nasa’i, Ibn Majah and Darimi transmitted it. In Tirmidhi’s Jami' Sufyan ath-Thauri gave a commentary on the three verses. Ibn Majah added “whom we praise” after “praise be to God”, and “from our evil actions” after “from the evils within ourselves.” After “mighty success” Darimi added that one should then express what he needs. In Sharh as-sunna it is transmitted on the authority of Ibn Mas’ud concerning the form of words for some need, whether marriage or something else.
عَنْ عَبْدِ اللَّهِ بْنِ مَسْعُودٍ قَالَ: عَلَّمَنَا رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ التَّشَهُّدَ فِي الصَّلَاةِ وَالتَّشَهُّدَ فِي الْحَاجَةِ قَالَ: التَّشَهُّدُ فِي الصَّلَاةِ: «التَّحِيَّاتُ لِلَّهِ وَالصَّلَوَاتُ وَالطَّيِّبَاتُ السَّلَامُ عَلَيْكَ أَيُّهَا النَّبِيُّ وَرَحْمَةُ اللَّهِ وَبَرَكَاتُهُ السَّلَامُ عَلَيْنَا وَعَلَى عِبَادِ اللَّهِ الصَّالِحِينَ أَشْهَدُ أَنْ لَا إِلَهَ إِلَّا اللَّهُ وَأَشْهَدُ أَنَّ مُحَمَّدًا عَبْدُهُ وَرَسُولُهُ» . وَالتَّشَهُّدُ فِي الْحَاجَةِ: «إِنَّ الْحَمْدَ لِلَّهِ نَسْتَعِينُهُ وَنَسْتَغْفِرُهُ وَنَعُوذُ بِاللَّهِ مِنْ شُرُورِ أَنْفُسنَا من يهد اللَّهُ فَلَا مُضِلَّ لَهُ وَمَنْ يُضْلِلْ فَلَا هَادِيَ لَهُ وَأَشْهَدُ أَنْ لَا إِلَهَ إِلَّا اللَّهُ وَأَشْهَدُ أَنَّ مُحَمَّدًا عَبْدُهُ وَرَسُولُهُ» . وَيَقْرَأُ ثَلَاثَ آيَاتٍ (يَا أَيُّهَا الَّذِينَ آمَنُوا اتَّقُوا اللَّهَ حَقَّ تُقَاتِهِ وَلَا تَمُوتُنَّ إِلَّا وَأَنْتُمْ مُسلمُونَ)
(يَا أَيُّهَا النَّاسُ اتَّقُوا رَبَّكُمُ الَّذِي خَلَقَكُمْ مِنْ نَفْسٍ وَاحِدَةٍ وَخَلَقَ مِنْهَا زَوْجَهَا وَبَثَّ مِنْهُمَا رِجَالًا كَثِيرًا وَنِسَاءً وَاتَّقُوا اللَّهَ الَّذِي تساءلون وَالْأَرْحَامَ إِنَّ اللَّهَ كَانَ عَلَيْكُمْ رَقِيبًا)
(يَا أَيُّهَا الَّذِينَ آمَنُوا اتَّقُوا اللَّهَ وَقُولُوا قَوْلًا سَدِيدًا يُصْلِحْ لَكُمْ أَعْمَالَكُمْ وَيَغْفِرْ لَكُمْ ذُنُوبَكُمْ وَمَنْ يُطِعِ اللَّهَ وَرَسُولَهُ فَقَدْ فَازَ فَوْزًا عَظِيما)
رَوَاهُ أَحْمَدُ وَالتِّرْمِذِيُّ وَأَبُو دَاوُدَ وَالنَّسَائِيُّ وَابْنُ مَاجَهْ وَالدَّارِمِيُّ وَفِي جَامِعِ التِّرْمِذِيِّ فَسَّرَ الْآيَاتِ الثَّلَاثَ سُفْيَانُ الثَّوْرِيُّ وَزَادَ ابْنُ مَاجَهْ بَعْدَ قَوْلِهِ: «إِنَّ الْحَمْدَ لِلَّهِ نَحْمَدُهُ» وَبَعْدَ قَوْلِهِ: «من شرور أَنْفُسنَا وَمن سيئات أَعمالنَا» وَالدَّارِمِيُّ بَعْدَ قَوْلِهِ «عَظِيمًا» ثُمَّ يَتَكَلَّمُ بِحَاجَتِهِ وَرَوَى فِي شَرْحِ السُّنَّةِ عَنِ ابْنِ مَسْعُودٍ فِي خطْبَة الْحَاجة من النِّكَاح وَغَيره