From Sahih Bukhari (Hadith 1411):
Narrated Haritha bin Wahab:I heard the Prophet (ﷺ) saying, "O people! Give in charity as a time will come upon you when a person will wander about with his object of charity and will not find anybody to accept it, and one (who will be requested to take it) will say, "If you had brought it yesterday, would have taken it, but today I am not in need of it
Reference: Bukhari 1411