Ali had to cook for ______?

Ali had to cook for ______?

Explanation

"Himself" is the correct reflexive pronoun to use when Ali is both the subject and object of the action.

It indicates that Ali was cooking for Ali, rather than for someone or something else.