Shemot / Exodus 7:3 · Sod
וַאֲנִי אַקְשֶׁה אֶת־לֵב פַּרְעֹה וְהִרְבֵּיתִי אֶת־אֹתֹתַי וְאֶת־מוֹפְתַי בְּאֶרֶץ מִצְרָיִם׃
And I will make Pharaoh's heart stubborn, and I will multiply My signs and My wonders in the land of Egypt.
Sod סוֹד
Repentance under blows is no repentance
Under pressure a person often gives in: "fine, I'll do it." But has he changed? Or can he simply no longer bear the pain? Sforno sees a gift in Pharaoh's stubbornness: freedom of choice.
Sforno: God wants the wicked to return, not to die. Without the "heaviness of heart," Pharaoh would have let Israel go, but not out of repentance: only because he could no longer bear the plagues. That is no repentance at all. The Eternal made his heart stubborn so that he could endure the blows and choose for himself, and the signs would show the Egyptians the Eternal's greatness and goodness. Had Pharaoh wished to submit to the Eternal with all his heart, nothing would have stopped him.
How Sforno explain it
Sforno And I will make stubborn
For God desires that the wicked return and not die, as He said: "As I live, says the Eternal, do I desire the death of the wicked? Only that the wicked turn from his way and live" (Yechezkel / Ezekiel 33:11). He said that He would multiply His signs and wonders, and this is in order to bring the Egyptians back, by making known to them His greatness and His goodness through signs and wonders, as He said: "for this purpose I have let you stand, to show you My power" (9:16). And with this the intent was also that Israel would see and fear, as He said: "that I may set these My signs in his midst" and "that you may tell" (10:1–2).
And there is no doubt that, were it not for the "heaviness of heart," Pharaoh would without doubt have let Israel go. But not out of repentance and submission to God, regretting that he had rebelled, even though he had come to know His greatness and goodness. Only because he could no longer bear the distress of the plagues, as his servants told him: "do you not yet know that Egypt is lost?" (10:7). And this is no repentance at all. But had Pharaoh wished to submit to God and return to Him in full repentance, nothing would have prevented him.
And so God said: "And I will make Pharaoh's heart stubborn," so that he would gather strength to bear the plagues and not let Israel go out of fear of the plagues, "that I may set these My signs in his midst." From them My greatness and My goodness will be known, and the Egyptians will return with some true repentance. "And that you may tell," you, Israel, who see their distress, in the ears of your son, making known that God does all these things with a person in order to bring him back to Himself. And this comes about when people examine their deeds when some trouble comes upon them.
Takeaway
"That you may tell in the ears of your son and your son's son" (Shemot / Exodus 10:2). Telling children of the exodus from Egypt is the commandment of the Passover night: "and you shall tell your son on that day" (Shemot / Exodus 13:8).
"Examine their deeds" (יְפַשְׁפְּשׁוּ בְּמַעֲשֵׂיהֶם) is the Talmud's advice: "If a person sees suffering coming upon him, let him examine his deeds" (Berakhot 5a).