'Uqbah bin Al-Harith (May Allah be pleased with him) said:
Once I performed the 'Asr prayer in Al-Madinah behind the Prophet (ﷺ). He (ﷺ) got up quickly after finishing the prayer with Taslim, and stepping over the people, went to one of the rooms of his wives. The people were startled at his haste, and when he came out and saw their astonishment at his urgency he said, "I recalled that there was left with me some gold which was meant for charity; I did not like to keep it any longer, so I gave orders that it should be distributed".[Al-Bukhari].In another narration, Messenger of Allah said, "I had left some gold for Sadaqah in the house, and did not wish to keep it overnight".
Arabic/English book reference: Book 1, Hadith 88