Sahih al-Bukhari #4169
Military Expeditions led by the Prophet (pbuh) (Al-Maghaazi) 64:211
Narrated Yazid bin Abi Ubaid:
I said to Salama bin Al-Akwa`, "For what did you give the Pledge of allegiance to Allah's Messenger (ﷺ) on the day of Al-Hudaibiya?" He replied, "For death (in the Cause of Islam.).