Sunan Abi Dawud, Book 2, Hadith 204 (Abu Dawud 594)

Abu Hurairah reported the Messenger of Allah(ﷺ) as saying:

The obligatory prayer is essential behind every Muslim, pious or impious, even if he has committed a sins.