ENOfficial
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."
Source: sunnah.com
Other translations
Arabic
حَدَّثَنَا عَبْدُ اللَّهِ بْنُ مَسْلَمَةَ، حَدَّثَنَا حَاتِمٌ، عَنْ يَزِيدَ، قَالَ قُلْتُ لِسَلَمَةَ عَلَى أَىِّ شَىْءٍ بَايَعْتُمُ النَّبِيَّ صلى الله عليه وسلم يَوْمَ الْحُدَيْبِيَةِ قَالَ عَلَى الْمَوْتِ.
sunnah.com