The obligatory prayer is essential behind every Muslim, pious or impious, even if he has committed a sins. Sunan Abi Dawud Book 2, Hadith 204