Sayyiduna Ma'qil bin Yasar al-Muzani (may Allah be pleased with him) said: The people pledged allegiance to the Prophet (peace and blessings be upon him) on the day of al-Hudaybiyah under the tree, and I was holding up one of its branches. We did not pledge allegiance to him to die, but we pledged allegiance to him that we would not flee.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب قتال أهل البغي / 16557