Bereshit / Genesis 12:17
וַיְנַגַּע יְהוָה אֶת־פַּרְעֹה נְגָעִים גְּדֹלִים וְאֶת־בֵּיתוֹ עַל־דְּבַר שָׂרַי אֵשֶׁת אַבְרָם׃
And the Eternal struck Pharaoh and his house with great plagues, because of Sarai, Avram's wife.
Pshat פְּשָׁט
Not by chance
Radak: the plagues struck Pharaoh's house too, his officers who praised Sarai and took her, so that all would understand: this is the finger of the Almighty. "Because of Sarai" is said so that no one would call it chance. By the plain sense, Pharaoh searched for the reason, asked Sarai, and she told the truth: she was Avram's wife. Ramban: the plagues came for the wrong done to Sarai and to Avram, and in the merit of both.
How Radak and Ramban explain it
Remez רֶמֶז
A palm tree in four words
Be'er Mayim Chaim: the last letters of the four words, ר, י, ת, ם, form "tamri" (תמרי), "my palm". The midrash teaches: the righteous are like a palm, and whoever climbs it carelessly falls. Sarai chose these very words, and the angel understood what to do. So she did not fear for Avram either. Rashi: "al dvar" means "by her word" (דִּבּוּר): she would tell the angel "strike", and he struck.
How Be'er Mayim Chaim and Rashi explain it
Drash דְּרָשׁ
The angel waits for her word
Tanchuma: at that hour an angel came down with a staff. Each time Pharaoh reached for Sarai, the angel struck him, and before each blow he asked Sarai. So it says "al dvar" (עַל דְּבַר), "by the word" of Sarai. The plagues struck his officers too, and even the walls and vessels of the palace. Lekach Tov: even the beams of his house were struck, and all night the angel stood, struck him and said: "because of Sarai, Avram's wife".
How Midrash Tanchuma and Midrash Lekach Tov explain it
Sod סוֹד
The first plagues of Egypt
Be'er Mayim Chaim: the patriarchs are a sign for their children. At the Exodus open miracles were needed, so that all nations would know that Israel is the seed the Eternal blessed. So with Avraham too the miracle was open. Open miracles belong to the name the Eternal (ה׳), while the name the Almighty (אֱלֹהִים) belongs to nature: "nature" (הַטֶּבַע) equals "the Almighty" in number. It says "and the Eternal struck", and everyone cried "because of Sarai": even wicked Pharaoh saw an open miracle, for the road was being paved for Avraham's children.
How Be'er Mayim Chaim explain it