From Sahih Bukhari (Hadith 2389):
Narrated Abu Huraira:Allah's Messenger (ﷺ) said, "If I had gold equal to the mountain of Uhud, it would not please me that it should remain with me for more than three days, except an amount which I would keep for repaying debts
Reference: Bukhari 2389