Sunan an-Nasa'i, Book 39, Hadith 10 (Nasa'i 4168)

Jabir said:

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