The particle 「に」 (ni) is used here to indicate the recipient of the action "言いました (iimashita - said)". It shows that "彼 (kare - him)" is the person to whom something was said. The sentence means "I said TO him."
ここでの「に」は、「言いました」の動作の相手、つまり「彼」が言葉を伝えられた対象であることを示します。
Project Eagle 使用 AI 分析您的弱點。完全免費進行數千個互動測驗和模擬考試!