Narrated 'Ubaid-Ullah bin Adi bin Khiyar
I went to 'Uthman bin Affan while he was besieged, and said to him, "You are the chief of all Muslims in general and you see what has befallen you. We are led in the Salat (prayer) by a leader of Al-Fitan (trials and afflictions etc.) and we are afraid of being sinful in following him." 'Uthman said. "As-Salat (the prayers) is the best of all deeds so when the people do good deeds do the same with them and when they do bad deeds, avoid those bad deeds." Az-Zuhri said, "In our opinion one should not offer Salat behind an effeminate person unless there is no alternative."
Narrated Anas bin Malik
The Prophet (ﷺ) said to Abu-Dhar, "Listen and obey (your chief) even if he is an Ethiopian with a head like a raisin."