وَعَنْ أَبِي هُرَيْرَةَ رَضِيَ اللَّهُ عَنْهُ قَالَ: قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: «لَوْ كَانَ لِي مِثْلُ أُحُدٍ ذَهَبًا لَسَرَّنِي أَنْ لَا يَمُرَّ عَلَيَّ ثَلَاثُ لَيَالٍ وَعِنْدِي مِنْهُ شَيْءٌ إِلَّا شَيْءٌ أَرْصُدُهُ لِدَيْنٍ» . رَوَاهُ البُخَارِيّ
Translation

Haritha b. Wahb told that God's messenger exhorted the people to give sadaqa, for the time was coming when a man would go with his sadaqa and find no one to accept it. A man would say, “If you had brought it yesterday I would have accepted it, but I have no need of it today." (Bukhari and Muslim.)