That the Prophet (ﷺ) said: "Whoever asks Allah to be killed in His cause sincerely from his heart, Allah shall give him the reward of martyrdom.

This Hadith is Hasan Sahih.
Jami` at-Tirmidhi Book 22, Hadith 37