It is narrated from Sayyiduna Amr bin Murrah (may Allah be pleased with him) - who had the honour of being a Companion - that he said to Sayyiduna Mu'awiyah (may Allah be pleased with him): I heard the Messenger of Allah (peace and blessings be upon him) saying: "Any ruler - or he said: judge; the narrator Ali (bin al-Hakam) was in doubt - who closes his door to the needy, those in poverty and want, and the destitute, Allah Almighty will close His door to him at the time of his need, his poverty and want, and his destitution." In the narration of Imam Ahmad bin Hanbal, Abu al-Shammakh al-Azdi narrates from a cousin of his who was one of the Companions of the Prophet (peace and blessings be upon him), that he went to Sayyiduna Mu'awiyah (may Allah be pleased with him) and said: I heard the Messenger of Allah (peace and blessings be upon him) saying: "Whoever is put in charge of any affair of the people and then closes his door to the destitute, the oppressed and the needy, Allah, the Blessed and Exalted, will close the doors of His mercy to him at the time of his need, when he will be in the utmost need of it (that mercy)." Likewise Imam Abu Ya'la has narrated it through Abu al-Shammakh al-Azdi. This hadith has a supporting narration (shahid) from Sayyiduna Mu'adh bin Jabal (may Allah be pleased with him), which Imam Ahmad bin Hanbal narrated in his Musnad with a jayyid (good) chain, and Imam al-Tabarani and other hadith scholars have also recorded it. Our teacher, Hafiz Abu al-Hasan al-Haythami, cited it in the Zawa'id of al-Harith over the books from the hadith of Sayyiduna Abu Maryam al-Azdi (may Allah be pleased with him), who had the honour of being a Companion; however, Hafiz al-Haythami made an error in this, because Imam Abu Dawud and Imam al-Tirmidhi have narrated it through the route of al-Qasim bin Mukhaymirah from Sayyiduna Abu Maryam al-Azdi (may Allah be pleased with him) himself.
Hadith Takhrij«رواه أحمد بن حنبل في مسنده بإسناد جيد، والطبراني وغيره، وأورده شيخنا الحافظ أبو الحسن الهيثمي في زوائد الحارث على الكتب من حديث أبي مريم الأزدي، وكانت له صحبة، ووهم في ذلك، فقد رواه أبو داود والترمذي من طريق القاسم بن مخيمرة، عن أبي مريم الأزدي به» «(4234/1) أخرجه سنن الترمذي برقم: 1332، وأخرجه مسند أحمد برقم: 17572، وأخرجه فتح الباري برقم: 6735» «(4234/2) أخرجه مسند أحمد برقم: 15224»