Worship cannot bring a person closer to Allaah and cannot be accepted unless it meets two conditions:
1 – Sincerity towards Allaah alone, i.e., it is done to seek the Countenance of Allaah and the Hereafter, and is not done to show off, to enhance one’s reputation or for worldly gain.
2 – Following the Prophet (peace and blessings of Allaah be upon him) in word and deed. Following the Prophet (peace and blessings of Allaah be upon him) can only be achieving by knowing his Sunnah.
Surely Allaah knows the best