(18) باب اسْتِحْبَابِ مُبَايَعَةِ الإِمَامِ الْجَيْشَ عِنْدَ إِرَادَةِ الْقِتَالِ وَبَيَانِ بَيْعَةِ الرِّضْوَانِ تَحْتَ الشَّجَرَةِ
It has been narrated (through a different chain of transmitters) on the authority of Jabir who said:
While swearing fealty to the Prophet (ﷺ) we did not take the oath to death but that we would not run away (from the battlefield).
Reference: Sahih Muslim 1856 b
In-book reference: Book 33, Hadith 105
USC-MSA web (English) reference(deprecated numbering scheme): Book 20, Hadith 4577