وَمَآ أُمِرُوٓا۟ إِلَّا لِيَعْبُدُوا۟ ٱللَّهَ مُخْلِصِينَ لَهُ ٱلدِّينَ حُنَفَآءَ …
Sentence structure
مَا أُمِرُوٓا۟ إِلَّا is a negative restriction. لِيَعْبُدُوا۟ is a subjunctive purpose clause; ٱللَّهَ is object. مُخْلِصِينَ and حُنَفَآءَ are accusative circumstantial expressions; ٱلدِّينَ is object of the participle.
Ayah summary
They were commanded to worship Allah sincerely, establish prayer, and give zakat.
وَمَآ — And not
Grammar: وَ resumes and مَآ negates.
أُمِرُوٓا۟ — they were commanded
Grammar: A masculine-plural passive perfect; attached وا is deputy subject.
إِلَّا — except
Grammar: A restriction particle after negation. This phrase is linked to «أُمِرُوا۟».
لِيَعْبُدُوا۟ — to worship
Grammar: لِ is purpose; a masculine-plural subjunctive imperfect with attached subject وا.
ٱللَّهَ — Allah
Grammar: The proper noun is accusative object of يَعْبُدُوا۟.
مُخْلِصِينَ — sincerely devoting
Grammar: A Form IV masculine-plural active participle, accusative circumstance.
لَهُ — to Him
Grammar: A preposition with masculine-singular genitive pronoun linked to مُخْلِصِينَ.
ٱلدِّينَ — the religion
Grammar: A defined masculine accusative object of the active participle.
حُنَفَآءَ — upright
Grammar: A masculine-plural accusative circumstance.