Which joined form correctly replaces حَامِدًا in ضَرَبُوا حَامِدًا with ‘him’?

Attached Object Pronouns in Verbal Sentences