The first places Zayd as an accusative object; the second places him as a subject that is genitive only on the surface after bā.
Opening interactive controls...
Two Forms, Different Parsing
The Two Exclamatory Verbs: Forms, Rules and Parsing
The first places Zayd as an accusative object; the second places him as a subject that is genitive only on the surface after bā.