Uqba reported,

I prayed the afternoon prayer behind the Prophet ﷺ in Medina. After he gave the closing salaam, he stood up quickly and stepped over the people's shoulders, hurrying toward one of his wives' chambers. The people were startled by his haste. He then came back out to them and saw that they were astonished at how quickly he had moved, so he said, "I remembered some gold we had at home, and I disliked the thought of it keeping me preoccupied, so I ordered it to be distributed."

Bukhari 851

Sahih

حدثنا محمد بن عبيد بن ميمون قال حدثنا عيسى بن يونس عن عمر بن سعيد قال أخبرني ابن أبي مليكة

عن عقبة قال

صليت وراء النبي ﷺ بالمدينة العصر فسلم ثم قام مسرعا فتخطى رقاب الناس إلى بعض حجر نسائه ففزع الناس من سرعته فخرج عليهم فرأى أنهم عجبوا من سرعته فقال ذكرت شيئا من تبر عندنا فكرهت أن يحبسني فأمرت بقسمته

البخاري 851صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Adhan
Chapter
One who leads people in prayer then remembers a need and steps over them
Numbering
Darussalam 851
Bukhari 851