Bara bin Azib reported,

He stayed there for three days. When the third day came, they said to Ali, "This is the last day of your companion's term, so tell him to leave."Ali informed him of this, and he said, "Yes," and departed.

Azami 5399

Sahih

عن البراء، قال

فأقام بها ثلاثة أيام، فلما أن كان يوم الثالث، قالوا لعلي: هذا آخر يوم من شرط صاحبك فأمره فليخرج، فأخبره بذلك فقال: نعم فخرج.

الأعظمي 5399صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Hajj
Chapter
Umrah
Section
Duration of the Prophet's ﷺ stay during Amra al-Qada
Numbering
Jami al-Kamil 5399 (2nd edition)
Azami 5399