Sunan an Nasai
4158
Sahih+2

Jabir said:"We did not give our pledge to the Messenger of Allah for death, rather we pledged not to flee (from battle)

SahihAbu Ghuddah
SahihAl-Albani