Narrated Abdullah ibn Abbas: The Prophet ﷺ said: If anyone asks (you) for refuge for the sake of Allah, give him refuge; and if anyone asks you (for something) for the pleasure of Allah, give him. Ubaydullah said: If anyone asks you for the sake of Allah.
The Prophet Muhammad was a great example of generosity and kindness towards others; he always gave whatever he could whenever he was asked or even when he wasn't asked directly. He taught his followers that helping others out of kindness and generosity would bring blessings from Allah upon them. He also taught his followers that being generous with their wealth would bring rewards from God on the Day of Judgment as well as here on earth.