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.