Sahih al-Bukhari, Book 93, Hadith 66 (Bukhari 6933)

Narrated Yazid:

I said to Salama, "For what did you give the Pledge of allegiance to the Prophet (ﷺ) on the Day of Hudaibiya?" He replied, "For death."