صحيح مسلم Sahih Muslim كتاب الإمارة The Book on Government
باب اسْتِحْبَابِ طَلَبِ الشَّهَادَةِ فِي سَبِيلِ اللَّهِ تَعَالَى:

Chapter: It is recommended to seek Martyrdom in the Cause of Allah, Exalted is He.

2 hadith
Hadith 1908
حَدَّثَنَا شَيْبَانُ بْنُ فَرُّوخَ ، حَدَّثَنَا حَمَّادُ بْنُ سَلَمَةَ ، حَدَّثَنَا ثَابِتٌ ، عَنْ أَنَسِ بْنِ مَالِكٍ ، قَالَ : قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ : " مَنْ طَلَبَ الشَّهَادَةَ صَادِقًا أُعْطِيَهَا وَلَوْ لَمْ تُصِبْهُ " .
It has been narrated on the authority of Anas bin Malik (RA) that the Messenger of Allah (ﷺ) said: Who seeks martyrdom with sincerity shall get its reward, though he may not achieve it.
Hadith Reference Sahih Muslim / The Book on Government / Hadith: 1908
Hadith Grading محدثین: أحاديث صحيح مسلم كلها صحيحة
Hadith Takhrij «أحاديث صحيح مسلم كلها صحيحة»
Hadith 1909
حَدَّثَنِي أَبُو الطَّاهِرِ ، وَحَرْمَلَةُ بْنُ يَحْيَى ، وَاللَّفْظُ لِحَرْمَلَةَ ، قَالَ أَبُو الطَّاهِرِ : أَخْبَرَنَا ، وقَالَ حَرْمَلَةُ : حَدَّثَنَا عَبْدُ اللَّهِ بْنُ وَهْبٍ ، حَدَّثَنِي أَبُو شُرَيْحٍ ، أَنَّ سَهْلَ بْنَ أَبِي أُمَامَةَ بْنِ سَهْلِ بْنِ حُنَيْفٍ حَدَّثَهُ ، عَنْ أَبِيهِ ، عَنْ جَدِّهِ ، أَنَّ النَّبِيَّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ قَالَ : " مَنْ سَأَلَ اللَّهَ الشَّهَادَةَ بِصِدْقٍ بَلَّغَهُ اللَّهُ مَنَازِلَ الشُّهَدَاءِ ، وَإِنْ مَاتَ عَلَى فِرَاشِهِ " ، وَلَمْ يَذْكُرْ أَبُو الطَّاهِرِ فِي حَدِيثِهِ بِصِدْقٍ .
It has been reported on the authority of Sahl bin Aba Umama bin Sahl bin Hunaif who learned the tradition from his father who (in turn) learned it from his grandfather-that the Messenger of Allah (ﷺ) said: Who sought martyrdom with sincerity will be ranked by Allah among the martyrs even if he died on his bed. In his version of the tradition Abd Tahir did not mention the words:" with sincerity".
Hadith Reference Sahih Muslim / The Book on Government / Hadith: 1909
Hadith Grading محدثین: أحاديث صحيح مسلم كلها صحيحة
Hadith Takhrij «أحاديث صحيح مسلم كلها صحيحة»