I came in to see Muawiya, and he said, "What a pleasant surprise to have you, Abu so-and-so." This is an expression the Arabs use.I said, "I have come to tell you a hadith I heard. I heard the Messenger of Allah ﷺ say, 'Whoever is placed by Allah in charge of any of the affairs of the Muslims and then shuts himself off from their needs, their hardships, and their poverty, Allah will shut Himself off from his needs, his hardships, and his poverty.'"So Muawiya appointed a man to attend to the needs of the people.
حدثنا سليمان بن عبد الرحمن الدمشقي حدثنا يحيى بن حمزة حدثني ابن أبي مريم أن القاسم بن مخيمرة أخبره أن
دخلت على معاوية فقال ما أنعمنا بك أبا فلان وهي كلمة تقولها العرب فقلت حديثا سمعته أخبرك به سمعت رسول الله ﷺ يقول من ولاه الله عز وجل شيئا من أمر المسلمين فاحتجب دون حاجتهم وخلتهم وفقرهم احتجب الله عنه دون حاجته وخلته وفقره قال فجعل رجلا على حوائج الناس
[Its isnad is hasan] Tirmidhi narrated it in Al-Ahkam, chapter on what has been said about the leader of the people, no. 1333, from the hadith of Yahya bin Hamza with this wording, and he mentioned some remarks. Hakim graded it sahih, 4/93, 94, and Dhahabi agreed with him. This hadith has corroborating narrations in Tirmidhi, no. 1332, and Ahmad, 5/238, and others.