Answer: Deeds are accepted by Allah Almighty when two conditions are fulfilled, which are:
1. If the deed is dedicated with full sincerity to Allah Almighty
2. If the deed complies with the Sunnah of the Prophet (may Allah’s peace and blessings be upon him)