The theme of hardening appears from the first announcements of the confrontation between Moses and Pharaoh.
God declares:
"I will harden his heart, and he will not let the people go" (Exodus 4.21).
This announcement precedes the wounds.
It shows that God knows the resistance that Pharaoh will oppose Israel's liberation and that he integrates this opposition into the fulfillment of his purpose.
Exodus 7.3 takes this perspective from the following perspective:
"I will harden Pharaoh's heart, and I will multiply my signs and my miracles in the land of Egypt."
The narrative thus presents hardening as an important element of the progressive manifestation of divine power.
However, the following chapters do not describe Pharaoh as a devoid of will.
The ruler makes decisions, refuses warnings, negotiates with Moses and returns to his commitments.
Thus, hardening has a twofold dimension: it belongs to God's sovereign purpose while manifesting itself in Pharaoh's personal choices.