Musar к Шмот 5:23

וּמֵאָ֞ז בָּ֤אתִי אֶל־פַּרְעֹה֙ לְדַבֵּ֣ר בִּשְׁמֶ֔ךָ הֵרַ֖ע לָעָ֣ם הַזֶּ֑ה וְהַצֵּ֥ל לֹא־הִצַּ֖לְתָּ אֶת־עַמֶּֽךָ׃

Ибо с тех пор как я пришел к фараону, чтобы говорить от имени Твоего, он заболел этим народом; Ты не избавил Твоих людей вообще.'

Shenei Luchot HaBerit

Though Pharaoh had intended the opposite, and even Moses had remonstrated with G–d (Exodus 5,22-23), he was taught that this was an occasion when in order to build anew, one must first tear down the old. The very addition of affliction resulted in accelerated redemption.