There are two essential conditions for ‘Ibādah (worship) to be accepted in Islam:
Sincerity to Allāh: Worship must be performed with pure intentions, dedicated solely to Allāh without any desire for praise, recognition, or personal gain.
Submission to Allāh’s Messenger: Worship must be conducted in accordance with the teachings and practices of the Prophet Muhammad (peace be upon him), following his Sunnah (example) as the correct way to worship Allāh.
These conditions ensure that worship is both genuine and aligned with the guidance provided by Allāh and His Messenger.