Anas (May Allah be pleased with him) reported:
The Messenger of Allah (ﷺ) said, "He who supplicates sincerely for martyrdom, it will be granted to him even though he is not killed on the battlefield."[Muslim].
App reference: Book 12, Hadith 38
Arabic/English book reference: Book 12, Hadith 1322