Direct/indirect speech -‘I have won the race.‘
This can also be solved by placing the reporting verb and the original statement on a simple timeline rather than only quoting the tense-change rule.
Placing both events on a timeline confirms that the completed action must move one step further into the past when reported later, and the pronoun must shift with the reporting subject.
Hence, the correct answer is He said that he had won the race.