Parashas Shemos
וַיֹּ֣אמֶר פַּרְעֹ֔ה מִ֤י יְהֹוָה֙ אֲשֶׁ֣ר אֶשְׁמַ֣ע בְּקֹל֔וֹ לְשַׁלַּ֖ח אֶת־יִשְׂרָאֵ֑ל לֹ֤א יָדַ֙עְתִּי֙ אֶת־יְהֹוָ֔ה וְגַ֥ם אֶת־יִשְׂרָאֵ֖ל לֹ֥א אֲשַׁלֵּֽחַ׃
But Pharaoh said, “Who is GOD that I should heed him and let Israel go? I do not know GOD, nor will I let Israel go.”
Torah Temimah points to R’ Yehoshua ben Korchah — TT / Midrash (verified).
ויאמר פרעה — תני משמיה דר׳ יהושע בן קרחה: פרעה שחרף בעצמו\ldots נפרע ממנו הקב״ה בעצמו.
English: “And Pharaoh said” — it was taught in the name of R’ Yehoshua ben Korchah: Pharaoh who blasphemed by himself\ldots the Holy One exacted payment from him by Himself.
Custom
Chazal teach measure-for-measure: Pharaoh’s personal defiance was answered by God’s personal intervention.