ضَرَبْتُهُ تَأْدِيبًا
Translation: I struck him for discipline.
ضَرَبْتُ: past-tense verb built on sukūn with the subject suffix -tu (nominative position).
هُ: attached object pronoun, accusative position.
تَأْدِيبًا: accusative purpose/reason complement.
The suffix -hu answers “whom?”, but taʾdīban answers “why?”. They are not two direct objects.