Please click on the attachment to view Brian P. Irwin, “Yahweh’s Suspension of Free Will in the Old Testament: Divine Immorality or Sign-Act?” Tyndale Bulletin 54.2 (2003) 55-62.
The author’s summary:
Several passages in the Old Testament portray Yahweh as behaving in
ways that seem unfair or immoral. Two such narratives are the
episodes describing the hardening of Pharaoh’s heart and the spirit
dispatched to deceive Ahab. In each of these two cases, careful
attention to the literary context and the final form of the MT shows that
Yahweh’s behaviour is best understood as a sign-act directed toward a
specific end.