Mishkat al-Masabih
Mishkat al-Masabih 3715
Arabic hadith text
وَعَنْ مُعَاوِيَةَ قَالَ: قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: «يَا مُعَاوِيَةُ إِنْ وُلِّيتَ أَمْرًا فَاتَّقِ اللَّهَ وَاعْدِلْ» . قَالَ: فَمَا زِلْتُ أَظُنُّ أَنِّي مُبْتَلًى بِعَمَلٍ لِقَوْلِ النَّبِيِّ صَلَّى الله عَلَيْهِ وَسلم حَتَّى ابْتليت
Translation
Muawiya reported that the Messenger of God said: Muawiya, if you are given authority over an affair, fear God and act justly. He said: After the Prophet's words, I kept thinking that I would be tested with a position of authority, until I was tested.