Shemot9:27

וַיִּשְׁלַח פַּרְעֹה וַיִּקְרָא לְמֹשֶׁה וּלְאַהֲרֹן וַיֹּאמֶר אֲלֵהֶם חָטָאתִי הַפָּעַם יְהוָה הַצַּדִּיק וַאֲנִי וְעַמִּי הָרְשָׁעִים׃

And Pharaoh sent and called for Moshe and for Aharon and said to them: "I have sinned this time. The Eternal is righteous, and I and my people are in the wrong.

Shemot 9:27

וַיִּשְׁלַח פַּרְעֹה וַיִּקְרָא

Shemot / Exodus 9:27 · Remez

Shemot 9:27

וַיִּשְׁלַח פַּרְעֹה וַיִּקְרָא לְמֹשֶׁה וּלְאַהֲרֹן וַיֹּאמֶר אֲלֵהֶם חָטָאתִי הַפָּעַם יְהוָה הַצַּדִּיק וַאֲנִי וְעַמִּי הָרְשָׁעִים׃

And Pharaoh sent and called for Moshe and for Aharon and said to them: "I have sinned this time. The Eternal is righteous, and I and my people are in the wrong.

Remez רֶמֶז

Why "righteous" only now

In all the plagues Pharaoh never once said "the Eternal is righteous" (הַצַּדִּיק). The word appears only after the hail. The commentators look for what was special about the hail.

Chizkuni: of all the plagues, only at the hail did Pharaoh say "the Eternal is righteous." One who wants to fight another and kill him attacks without warning. But the Eternal Himself told Pharaoh: "Send, gather in your cattle." Da'at Zekenim: so Pharaoh said: the Eternal is righteous, He warned me well. And I and my people are in the wrong: we left the cattle in the fields and did not believe the Holy One, blessed is He.

How Chizkuni and Da'at Zekenim explain it

Chizkuni The Eternal is righteous

In all the plagues Pharaoh did not say "the Eternal is righteous," only at the hail. Why? A man who wants to fight another and kill him comes upon him suddenly and kills him. But He told Pharaoh: "Send, gather in your cattle and so on" (Shemot / Exodus 9:19).

Da'at Zekenim The Eternal is righteous

He said this about the hail more than about all the other plagues, because the Holy One, blessed is He, had told him: "Send, gather in," and those not gathered into the house died. So he said: "the Eternal is righteous," He warned me well, "and I and my people are in the wrong," for out of wickedness they left their cattle in the fields and did not believe the Holy One, blessed is He.

Takeaway

Pharaoh says the word "righteous" (צַדִּיק) only here in the story of the plagues. Chizkuni repeats a midrash also brought by Tanchuma (Buber), Vaera 20:2.
Those who stayed in the field were struck: "and the hail struck throughout the land of Egypt all that was in the field, from man to beast" (Shemot / Exodus 9:25).