Mishkat al-Masabih #3572
The Offices of Commander and Qadi
The Arabic includes the chain of narration (sanad) and the collector's commentary; the English translation shows the Prophet's words only.
عَنْ أَبِي الشَّمَّاخِ الْأَزْدِيِّ عَنِ ابْنِ عَمٍّ لَهُ مِنْ أَصْحَابِ النَّبِيِّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ أَنَّهُ أَتَى مُعَاوِيَةَ فَدَخَلَ عَلَيْهِ فَقَالَ: سَمِعْتُ رَسُولَ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ يَقُولُ: «مَنْ وَلِيَ مِنْ أَمْرِ النَّاسِ شَيْئًا ثُمَّ أَغْلَقَ بَابَهُ دُونَ الْمُسْلِمِينَ أَوِ الْمَظْلُومِ أَوْ ذِي الْحَاجَةِ أَغْلَقَ اللَّهُ دُونَهُ أَبْوَابَ رَحْمَتِهِ عِنْدَ حَاجَتِهِ وَفَقْرِهِ أَفْقَرَ مَا يَكُونُ إليهِ»
Abush Shammakh al-Azdi was told by a cousin of his on his father’s side who was a companion of the Prophet that he had gone to Mu'awiya, entered his presence and told him he had heard God's Messenger say, "If one who has been given any authority over the people locks his gate against Muslims, or one who has been wronged, or one who has a need, God will lock the gates of His mercy against him when he has a need or is in poverty, however much he is in need of Him.”
Baihaqi transmitted in Shuab al iman.
Topics
About Mishkat al-Masabih
This hadith is #3572 from Mishkat al-Masabih, in the Book of The Offices of Commander and Qadi.