The Messenger of Allah ﷺ said, "Charity is not lawful for a wealthy person, except in five cases: for one fighting in the way of Allah, for one appointed to collect it, for one burdened with debt, for a man who buys it with his own money, or for a man who has a poor neighbor who was given charity and then presents some of it as a gift to the wealthy man."
حدثني يحيى عن مالك عن زيد بن أسلم
أن رسول الله ﷺ قال لا تحل الصدقة لغني إلا لخمسة لغاز في سبيل الله أو لعامل عليها أو لغارم أو لرجل اشتراها بماله أو لرجل له جار مسكين فتصدق على المسكين فأهدى المسكين للغني