Abu Talha reported,

The Prophet ﷺ used to remain at the battlefield for three nights whenever he prevailed over a people. On the third day at Badr, he ordered that his mount be prepared, and its saddle was fastened upon it. Then he set off walking, and his companions followed him, saying, "We think he is only going to attend to some need of his."He continued until he stood at the edge of the well and began calling out to them. The narrator then mentioned the rest of the hadith.

Azami 8792

Sahih

عن أبي طلحة قال

كان النبي ﷺ إذا ظهر على قوم أقام بالعرصة ثلاث ليال، فلما كان ببدر اليوم الثالث أمر براحلته فشد عليها رحلها، ثم مشى وأتبعه أصحابه وقالوا: ما نري ينطلق إلا لبعض حاجته حتى قام على شفة الركي، فجعل يناديهم فذكر الحديث.

الأعظمي 8792صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Biography of the Prophet ﷺ
Chapter
Expedition of Badr
Section
Prophet's ﷺ stay in Badr for three days after the victory and his return to Madinah
Numbering
Jami al-Kamil 8792 (2nd edition)
Azami 8792