ضَرَبْتُهُ تَأْدِيبًا: verb + subject suffix + object pronoun + accusative reason.
قَعَدْتُ عَنِ الْحَرْبِ جُبْنًا: verb + subject suffix + prepositional phrase + accusative reason.
The first expresses purpose and the second motive; both are analysed in this chapter as mafʿūl lahu.