Al-Ilmam bi-Ahadith al-Ahkam 496
عَن أبي سعيد الْخُدْرِيّ رَضِيَ اللَّهُ عَنْه، قَالَ: قَالَ رَسُول الله ﷺ : " لَا تحل الصَّدَقَة لَغَنِيّ إِلَّا لخمسة: لعامل عَلَيْهَا، أَو لغاز فِي سَبِيل الله، أَو غَنِي اشْتَرَاهَا بِمَالِه، أَو فَقير تُصدِّق عَلَيْهِ بهَا فأهداها لَغَنِيّ، أَو غَارِم ". لفظ ابْن ماجة ﷺ وَقد رُوِيَ مُرْسلا.
From Abu Saʿid al-Khudri, may Allah be pleased with him, who said: The Messenger of Allah ﷺ said: "Zakah is not lawful for a rich person except for five: one who works collecting it, one fighting in the cause of Allah, a rich man who buys it with his money, a poor man to whom it was given as charity and who gave it as a gift to a rich man, or one in debt." The wording is Ibn Majah's, and it has been narrated as mursal.