Saeed bin Asi reported,

He used to relate that Muawiya took over the water vessel after Abu Hurairah, following the Messenger of Allah ﷺ with it when Abu Hurairah fell ill. While he was pouring water for the Messenger of Allah ﷺ to perform ablution, the Prophet raised his head toward him once or twice and said, "Muawiya, if you are ever placed in charge of an affair, fear Allah عز وجل and rule with justice."Muawiya said, "I never stopped thinking that I would be tested with authority because of the Prophet's ﷺ words, until I was indeed tested with it."

Ahmad 16933

Sahih

قال حدثنا روح قال حدثنا

أبو أمية عمرو بن يحيى بن سعيد قال سمعت جدي

يحدث أن معاوية أخذ الإداوة بعد أبي هريرة يتبع رسول الله ﷺ بها واشتكى أبو هريرة فبينا هو يوضئ رسول الله ﷺ رفع رأسه إليه مرة أو مرتين فقال يا معاوية إن وليت أمرا فاتق الله عز وجل واعدل قال فما زلت أظن أني مبتلى بعمل لقول النبي ﷺ حتى ابتليت

أحمد 16933صحيح
Contents
Reference
Commentary
Ayat
Collection
Musnad Ahmad
Book
Muawiya bin Abu Sufyan
Numbering
Darussalam 16933
Ahmad 16933