The final alif of ضَرَبُوا remains written in ضَرَبُوهُ.

Attached Object Pronouns in Verbal Sentences