Layth narrates that Shahr said: There is no harm in a slave leading the prayer, provided that he is the most knowledgeable of them.