Abdullah bin Umar reported,

We returned the following year, and not two of us could agree on which tree we had pledged allegiance under. It was a mercy from Allah.I asked Nafi, "On what did he take their pledge? Was it on death?"He replied, "No, rather he took their pledge on patience."

Bukhari 2958

Sahih

حدثنا موسى بن إسماعيل حدثنا جويرية عن نافع قال قال

ابن عمر رضي الله عنهما

رجعنا من العام المقبل فما اجتمع منا اثنان على الشجرة التي بايعنا تحتها كانت رحمة من الله فسألت نافعا على أي شيء بايعهم على الموت قال لا بل بايعهم على الصبر

البخاري 2958صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Jihad and expeditions
Chapter
Pledge during war not to flee
Numbering
Darussalam 2958
Bukhari 2958