"مَثَلُ الْمُجَاهِدِ فِي سَبِيل اللهِ -واللهُ أَعْلَمُ بمَنْ يُجَاهِدُ فِي سبيلِهِ- كَمثلِ الصَّائِمِ الْقائِم الدَّائِمِ الَّذي لَا يَفْتُر مِنْ صِيَامٍ وَلَا صَدقَةٍ حَتَّى يَرْجِعَ، وتَوَكَّلَ اللهُ لِلمُجاهِدِ فِي سَبِيلِهِ إِنْ تَوَفَّاهُ أَنْ يُدْخِلَهُ الْجنَّةَ، أَوْ يُرْجِعَهُ سَالما مَعَ أَجرٍ أَوْ غَنِيمَةٍ".
See similar narrations below:
Collected by Bukhārī, Nasāʾī, Ibn Mājah, Ibn Ḥibbān, Nasāʾī's Kubrá, SuyūṭīI heard Messenger of Allah ﷺ saying, "The example of a Mujahid in Allah's Cause-- and Allah knows better who really strives in His Cause----is like a person who fasts and prays continuously. Allah guarantees that He will admit the Mujahid in His Cause into Paradise if he is killed, otherwise He will return him to his home safely with rewards and war booty."
سَمِعْتُ رَسُولَ اللَّهِ ﷺ يَقُولُ مَثَلُ الْمُجَاهِدِ فِي سَبِيلِ اللَّهِ وَاللَّهُ أَعْلَمُ بِمَنْ يُجَاهِدُ فِي سَبِيلِهِ كَمَثَلِ الصَّائِمِ الْقَائِمِ وَتَوَكَّلَ اللَّهُ لِلْمُجَاهِدِ فِي سَبِيلِهِ بِأَنْ يَتَوَفَّاهُ أَنْ يُدْخِلَهُ الْجَنَّةَ أَوْ يَرْجِعَهُ سَالِمًا مَعَ أَجْرٍ أَوْ غَنِيمَةٍ
"I heard the Messenger of Allah ﷺ say: 'The parable of Mujahid (who strives in the cause of Allah) - and Allah knows best who strives in teh cause of Allah - is that of one who fasts and prays Qiyam (continually). Allah has promised Mujahid (who strives in His cause), that He will either cause him to die and admit him to paradise, or, He will bring him back safely with whatever he had earned of reward or spoils of war.'"
سَمِعْتُ رَسُولَ اللَّهِ ﷺ يَقُولُ مَثَلُ الْمُجَاهِدِ فِي سَبِيلِ اللَّهِ وَاللَّهُ أَعْلَمُ بِمَنْ يُجَاهِدُ فِي سَبِيلِ اللَّهِ كَمَثَلِ الصَّائِمِ الْقَائِمِ وَتَوَكَّلَ اللَّهُ لِلْمُجَاهِدِ فِي سَبِيلِهِ بِأَنْ يَتَوَفَّاهُ فَيُدْخِلَهُ الْجَنَّةَ أَوْ يَرْجِعَهُ سَالِمًا بِمَا نَالَ مِنْ أَجْرٍ أَوْ غَنِيمَةٍ
“The one who fights in the cause of Allah has a guarantee from Allah. Either He will raise him to His forgiveness and mercy, or He will send him back with reward and spoils of war. The likeness of the one who fights in the cause of Allah is that of one who fasts and prays at night without ceasing, until he returns.”
عَنِ النَّبِيِّ ﷺ قَالَ الْمُجَاهِدُ فِي سَبِيلِ اللَّهِ مَضْمُونٌ عَلَى اللَّهِ إِمَّا أَنْ يَكْفِتَهُ إِلَى مَغْفِرَتِهِ وَرَحْمَتِهِ وَإِمَّا أَنْ يَرْجِعَهُ بِأَجْرٍ وَغَنِيمَةٍ وَمَثَلُ الْمُجَاهِدِ فِي سَبِيلِ اللَّهِ كَمَثَلِ الصَّائِمِ الْقَائِمِ الَّذِي لاَ يَفْتُرُ حَتَّى يَرْجِعَ
ذِكْرُ الْبَيَانِ بِأَنَّ هَذَا الْفَضْلَ يَكُونُ لِلْمُجَاهِدِ وَإِنْ مَاتَ فِي طَرِيقِهِ ذَلِكَ
[Machine] The Messenger of Allah ﷺ said, "The example of the Mujahid (one who struggles in the way of Allah) is like the example of the one who observes voluntary prayer and fasting, without ever interrupting them, until Allah returns him to his family with what He returns him of spoils or rewards or causes him to die and enters him into Paradise."
أَنَّ رَسُولَ اللَّهِ ﷺ قَالَ «مَثَلُ الْمُجَاهِدِ فِي سَبِيلِ اللَّهِ كَمَثَلِ الْقَانِتِ الصَّائِمِ الَّذِي لَا يَفْتُرُ صَلَاةً وَلَا صِيَامًا حَتَّى يَرْجِعَهُ اللَّهُ إِلَى أَهْلِهِ بِمَا يَرْجِعُهُ إِلَيْهِمْ مِنْ غَنِيمَةٍ أَوْ أَجْرٍ أَوْ يَتَوَفَّاهُ فَيُدْخِلُهُ الْجَنَّةَ»
I heard Messenger of Allah ﷺ saying, "The example of a Mujahid in Allah's Cause-- and Allah knows better who really strives in His Cause----is like a person who fasts and prays continuously. Allah guarantees that He will admit the Mujahid in His Cause into Paradise if he is killed, otherwise He will return him to his home safely with rewards and war booty." (Using translation from Bukhārī 2787)
سَمِعْتُ رَسُولَ اللهِ ﷺ يَقُولُ «مَثَلُ الْمُجَاهِدِ فِي سَبِيلِ اللهِ وَاللهُ أَعْلَمُ بِمَنْ يُجَاهِدُ فِي سَبِيلِهِ كَمَثَلِ الصَّائِمِ الْقَائِمِ وَتَوَكَّلَ اللهُ لِلْمُجَاهِدِ فِي سَبِيلِهِ بِأَنْ يَتَوَفَّاهُ فَيُدْخِلَهُ الْجَنَّةَ أَوْ يُرْجِعَهُ سَالِمًا بِمَا نَالَ مِنْ أَجْرٍ أَوْ غَنِيمَةٍ»
"المُجْاهدُ في سبيل اللهِ مَضمُونٌ على اللهِ، إِمَّا أَن يَكْتُبَهُ إلى مَغفِرَتِهِ وَرحْمَتِه، وإِمَّا أَنْ يَرجعَهُ بأجر وغنيمة، ومَثَلُ المُجَاهد في سبيِل اللهِ كَمَثَلِ الصَّائِم القائِمِ لا يَفْتُرُ حتى يَرْجعَ" .