Ubaydullah bin Adi reported,

He entered upon Uthman bin Affan رضي الله عنه while he was under siege and said, "You are the leader of the community, and what has befallen you is plain to see. An imam of sedition is leading us in prayer, and we feel uneasy about it."Uthman replied, "Prayer is the finest of what people do. When people do well, do well along with them, and when they do wrong, avoid their wrongdoing."

Azami 2251

Sahih

عن عبيد الله بن عدي بن خيار

أنه دخل على عثمان بن عفان رضي الله عنه وهو محصور، فقال: إنك إمام عامة، ونزل بك ما نرى، ويصلي لنا إمام فتنة، ونتحرج، فقال: الصلاة أحسن ما يعمل الناس، فإذا أحسن الناس فأحسن معهم، وإذا أساءوا فاجتنب إساءتهم.

الأعظمي 2251صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Prayer
Chapter
Leadership
Section
Leadership in prayer by one who is afflicted with tribulation and the innovator
Numbering
Jami al-Kamil 2251 (2nd edition)
Azami 2251