It was narrated that Abu Hurairah said:
"A man came to the Prophet (ﷺ) and said: "O Messenger of Allah (ﷺ), tell me, which of the people has most right to my good companionship?' He said: 'Yes, by your father, you will certainly be told.' He said: 'Your mother,' He said: 'Then who?' He said: Then your mother.' He said: 'Then who?' He said: Then your mother.' He said: 'Then who?' He said: Then your father.' He said: 'Tell me, O Messenger of Allah (ﷺ) about my wealth- how should I give in charity?' He said: 'Yes, by Allah (SWT) you will certainly be told. You should give in charity when you are still healthy and greedy for wealth, hoping for a long life and fearing poverty. Do not tarry until your soul reaches here and you say: "My wealth of for so-and-so," and "My wealth of for so-and-so," and it will be for them even though you dislike that.'"
English reference: Vol. 3, Book 22, Hadith 2706
Arabic reference: Book 22, Hadith 2810