Hadith on Tashahhud: What to say when sitting in prayer

Abdullah ibn Mas’ud reported: We were saying in prayer behind the Messenger of Allah, peace and blessings be upon him, “Peace be upon Allah, peace be upon this person.” The Prophet said to us one day, “Verily, Allah himself is peace. When one of you sits in prayer, let him say, ‘Greetings, prayers, and good things are for Allah. Peace be upon you, O Prophet, and the mercy of Allah and his blessings. Peace be upon us and upon the righteous servants of Allah.’ If you say that, it will reach every righteous servant in the heavens and earth. Then, say, ‘I bear witness there is no God but Allah, and I bear witness Muhammad is his servant and his messenger.’ Then, you may ask for whatever you wish.

Source: Ṣaḥīḥ al-Bukhārī 797, Ṣaḥīḥ Muslim 402

Grade: Muttafaqun Alayhi (authenticity agreed upon) according to Al-Bukhari and Muslim

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

797 صحيح البخاري أبواب صفة الصلاة باب التشهد في الآخرة

402 صحيح مسلم كتاب الصلاة باب التشهد في الصلاة