وَيُكْرَهُ تَقْدِيمُ الْعَبْدِ، وَالْأَعْرَابِيِّ، وَالْفَاسِقِ، وَالْأَعْمَى، وَوَلَدِ الزِّنَا، فَإِنْ قَدَّمُوهُ جَازَ.
Meaning: It is disliked to put forward a slave, a desert-dweller, an openly sinful person, a blind person, or a person born outside marriage; if any of them leads, the prayer is valid.
The statement expressly separates disapproval of choosing certain candidates in its historical legal framework from validity of the prayer they lead.