Hadithcore
Mishkat al-Masabih, 1833, 1834

‘Ata’ b. Yasar reported in mursal form that God’s messenger said, ''<i>Sadaqa</i> may not be given to a rich man, with the exception of five classes:

one who fights in God’s path, or one who collects it, or a debtor, a man who buys it with his money, or a man who has a poor neighbour a no has been given <i>sadaqa</i> and gives a present to the rich man.” Malik and Abu Dawud transmitted it. A version by Abu Dawud from Abu Sa'id has ‘‘or a traveller.”

وَعَنْ عَطَاءِ بْنِ يَسَارٍ مُرْسَلًا قَالَ: قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسلم:

لَا تَحِلُّ الصَّدَقَةُ لِغَنِيٍّ إِلَّا لِخَمْسَةٍ: لِغَازٍ فِي سَبِيلِ اللَّهِ أَوْ لِعَامِلٍ عَلَيْهَا أَوْ لِغَارِمٍ أَوْ لِرَجُلٍ اشْتَرَاهَا بِمَالِهِ أَوْ لِرَجُلٍ كَانَ لَهُ جَارٌ مِسْكِينٌ فَتَصَدَّقَ عَلَى الْمِسْكِينِ فَأَهْدَى الْمِسْكِين للغني

. رَوَاهُ مَالك وَأَبُو دَاوُد وَفِي رِوَايَةٍ لِأَبِي دَاوُدَ عَنْ أَبِي سَعِيدٍ: «أوابن السَّبِيل»

References1 variant
In-Book Reference
Book 6, Hadith 61