Mas’ala 345مختصر المزنيShafi'ivol. 1, p. 116vol. 1, p. 116 وَأَكْرَهُ إمَامَةَ الْفَاسِقِ وَالْمُظْهِرِ لِلْبِدَعِ وَلَا يُعِيدُ مَنْ ائْتَمَّ بِهِمَا، Read the whole chapterCopy with source On the map: PrayerCompare