The Messenger of Allah ﷺ said, "Whoever sincerely asks Allah for martyrdom, Allah will raise him to the ranks of the martyrs, even if he dies in his bed."
أخبرنا يونس بن عبد الأعلى قال حدثنا ابن وهب قال حدثني عبد الرحمن بن شريح أن
أن رسول الله ﷺ قال من سأل الله عز وجل الشهادة بصدق بلغه الله منازل الشهداء وإن مات على فراشه
Takhrij (source reference): Muslim narrated it in the chapter on the desirability of seeking martyrdom in the path of Allah the Almighty, hadith no. 1909, from the hadith of Ibn Wahb by this route, and it is also in Kubra, hadith no. 4370.