أَلَمْ تَرَ كَيْفَ فَعَلَ رَبُّكَ بِأَصْحَـٰبِ ٱلْفِيلِ ١
Sentence structure
أَ opens the question and لَمْ makes تَرَ jussive. The clause from كَيْفَ to ٱلْفِيلِ is the object of تَرَ. Within it, فَعَلَ has explicit subject رَبُّكَ, and بِأَصْحَـٰبِ ٱلْفِيلِ is linked to the verb.
Ayah summary
Allah’s dealing with the People of the Elephant was a well-known event.
أَلَمْ — Have ... not
Grammar: Prefixed interrogative أَ followed by negating and jussive particle لَمْ.
تَرَ — you see / consider
Grammar: A second-person masculine-singular imperfect made jussive by لَمْ; its final weak letter is dropped in jazm, and its subject is the hidden pronoun «أَنْتَ».
كَيْفَ — how
Grammar: An interrogative noun functioning adverbially as a circumstantial expression linked to فَعَلَ.
فَعَلَ — did / dealt
Grammar: A third-person masculine-singular perfect with the following explicit subject رَبُّكَ.
رَبُّكَ — your Lord
Grammar: رَبُّ is the nominative subject of فَعَلَ; attached كَ is a genitive possessive pronoun.
بِأَصْحَـٰبِ — with the companions
Grammar: Preposition بِ governs plural genitive أَصْحَـٰبِ, which is annexed to the next noun; the prepositional phrase is linked to فَعَلَ.
ٱلْفِيلِ — the Elephant
Grammar: A defined masculine-singular genitive complement of أَصْحَـٰبِ.