Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
bayhaqi:18487

[Machine] "And the Prophet ﷺ said: By the One in whose hand is the soul of Muhammad, I would love to fight in the cause of Allah, be killed, then brought back to life, be killed again, then brought back to life, be killed again, then be brought back to life, and be killed again. Abu Hurairah would say: I bear witness that the first statement is true."  

البيهقي:١٨٤٨٧

وَعَنِ النَّبِيِّ ﷺ قَالَ وَالَّذِي نَفْسُ مُحَمَّدٍ بِيَدِهِ لَوَدِدْتُ أَنْ أُقَاتِلَ فِي سَبِيلِ اللهِ فَأُقْتَلُ ثُمَّ أُحْيَا فَأُقْتَلُ ثُمَّ أُحْيَا فَأُقْتَلُ ثُمَّ أَحْيَا فَأُقْتَلُ ثُمَّ أُحْيَا كَانَ أَبُو هُرَيْرَةَ يَقُولُ ثَلَاثًا أُشْهِدُ اللهَ الْحَدِيثُ الْأَوَّلُ  

رَوَاهُ مُسْلِمٌ عَنْ يَحْيَى بْنِ يَحْيَى وَقَدْ أَخْرَجَا بَاقِيَهُ مِنْ أَوْجُهٍ

See similar narrations below:

Collected by Bukhārī, Mālik
bukhari:7227ʿAbdullāh b. Yūsuf > Mālik > Abū al-Zinād > al-Aʿraj > Abū Hurayrah

Abu Huraira said, Messenger of Allah ﷺ said, "By Him in Whose Hand my life is, I would love to fight in Allah's Cause and then get martyred and then resurrected (come to life) and then get martyred and then resurrected (come to life) and then get martyred, and then resurrected (come to life) and then get martyred and then resurrected (come to life)." Abu Huraira used to repeat those words three times and I testify to it with Allah's Oath.  

البخاري:٧٢٢٧حَدَّثَنَا عَبْدُ اللَّهِ بْنُ يُوسُفَ أَخْبَرَنَا مَالِكٌ عَنْ أَبِي الزِّنَادِ عَنِ الأَعْرَجِ عَنْ أَبِي هُرَيْرَةَ

أَنَّ رَسُولَ اللَّهِ ﷺ قَالَ وَالَّذِي نَفْسِي بِيَدِهِ وَدِدْتُ أَنِّي لأُقَاتِلُ فِي سَبِيلِ اللَّهِ فَأُقْتَلُ ثُمَّ أُحْيَا ثُمَّ أُقْتَلُ ثُمَّ أُحْيَا ثُمَّ أُقْتَلُ ثُمَّ أُحْيَا ثُمَّ أُقْتَلُ ثُمَّ أُحْيَا فَكَانَ أَبُو هُرَيْرَةَ يَقُولُهُنَّ ثَلاَثًا أَشْهَدُ بِاللَّهِ  

malik:21-29Yaḥyá > Mālik > Abū al-Zinād > al-Aʿraj > Abū Hurayrah

Yahya related to me from Malik from Abu'z-Zinad from al-Araj from Abu Hurayra that the Messenger of Allah ﷺ said, "By He in whose hand my self is! I would like to fight in the way of Allah and be killed, then be brought to life again so I could be killed, and then be brought to life again so I could be killed." Abu Hurayra said three times, "I testify to it by Allah!"  

مالك:٢١-٢٩حَدَّثَنِي يَحْيَى عَنْ مَالِكٍ عَنْ أَبِي الزِّنَادِ عَنِ الأَعْرَجِ عَنْ أَبِي هُرَيْرَةَ

أَنَّ رَسُولَ اللَّهِ ﷺ قَالَ وَالَّذِي نَفْسِي بِيَدِهِ لَوَدِدْتُ أَنِّي أُقَاتِلُ فِي سَبِيلِ اللَّهِ فَأُقْتَلُ ثُمَّ أُحْيَا فَأُقْتَلُ ثُمَّ أُحْيَا فَأُقْتَلُ فَكَانَ أَبُو هُرَيْرَةَ يَقُولُ ثَلاَثًا أَشْهَدُ بِاللَّهِ