Jami` at-Tirmidhi, Book 21, Hadith 56 (In-Book) ⓘ
Narrated Jabir bin ‘Abdullah : "We did not pledge to the Messenger of Allah for death, but only that we would not flee." [Abu 'Eisa said:] This Hadith is Hasan Sahih, meaning both of the Ahadith are Sahih. Some of his Companions pledged to him for death, they said only: "We will not leave from in front of you as long as we are not killed." While others pledged him by saying: "We will not flee."
حَدَّثَنَا أَحْمَدُ بْنُ مَنِيعٍ، حَدَّثَنَا سُفْيَانُ بْنُ عُيَيْنَةَ، عَنْ أَبِي الزُّبَيْرِ، عَنْ جَابِرِ بْنِ عَبْدِ اللَّهِ، قَالَ لَمْ نُبَايِعْ رَسُولَ اللَّهِ صلى الله عليه وسلم عَلَى الْمَوْتِ إِنَّمَا بَايَعْنَاهُ عَلَى أَنْ لاَ نَفِرَّ . قَالَ أَبُو عِيسَى هَذَا حَدِيثٌ حَسَنٌ صَحِيحٌ . وَمَعْنَى كِلاَ الْحَدِيثَيْنِ صَحِيحٌ قَدْ بَايَعَهُ قَوْمٌ مِنْ أَصْحَابِهِ عَلَى الْمَوْتِ وَإِنَّمَا قَالُوا لاَ نَزَالُ بَيْنَ يَدَيْكَ حَتَّى نُقْتَلَ وَبَايَعَهُ آخَرُونَ فَقَالُوا لاَ نَفِرُّ .
also referenced under: Hadith 1594 (Reference) & Volume 3, Book 19, Hadith 1594 (DarusSalam)