Sunan Abi Dawud Book 2, Hadith 204
The obligatory prayer is essential behind every Muslim, pious or impious, even if he has committed a sins.
The Prophet (ﷺ) said: There are three types of people whose prayer is not accepted by Allah: One who goes in front of people when they do not like him; a man who comes dibaran, which means that he comes to it too late; and a man who takes into slavery an emancipated male or female slave.
Anas said that the Prophet (ﷺ) appointed Ibn Umm Maktum as substitute to lead the people in prayer, and he was blind.