Sahih Muslim 1011
Narration text is preserved in its supplied Arabic and English. Translated interfaces and reading guides do not add narration translations in other languages.
تَصَدَّقُوا فَيُوشِكُ الرَّجُلُ يَمْشِي بِصَدَقَتِهِ فَيَقُولُ الَّذِي أُعْطِيَهَا لَوْ جِئْتَنَا بِهَا بِالأَمْسِ قَبِلْتُهَا فَأَمَّا الآنَ فَلاَ حَاجَةَ لِي بِهَا . فَلاَ يَجِدُ مَنْ يَقْبَلُهَا "
Haritha b. Wahb reported Allah's Messenger (ﷺ) as saying:
Give Sadaqa for a time is about to come when a person would walk with alms and the one whom it is to be given would say: Had you brought it yesterday, I would have accepted it. For the present I do not need it. (And the giver of Sadaqa) I would not find anyone to accept it.
Full reference and source
Sahih Muslim 1011 In-book : Book 12, Hadith 74 USC-MSA web (English) : Book 5, Hadith 2206 (deprecated)
View source on Sunnah.com (opens in a new tab)