(Exodus 9:20:) "He who feared the word of the LORD." From here Rabbi Shimon ben Yochai used to say: The best of snakes — crush its brain; and the most worthy of the Egyptians — kill. It is written (Exodus 14:7): "And he took six hundred chosen chariots." From where were they, seeing that it is written (Exodus 9:6): "And all the livestock of Egypt died"? Rather: "He who feared the word of the LORD among Pharaoh's servants made his servants and his livestock flee into the houses" (Exodus 9:20). "And he who did not set his heart [to the word of the LORD]" (Exodus 9:21) — the Holy One said: "Stretch out your hand toward the heavens" (Exodus 9:22).
Why Pharaoh Still Had Chariots After the Egyptian Cattle Died
Midrash Tanchuma Buber, Vaera 20:3
הירא את דבר ה' (שם שם כ) מכאן היה ר' שמעון בן יוחי אומר הטוב שבנחשים רצוץ את מוחו, והכשר שבמצרים הרוג, כתיב ויקח שש מאות רכב בחור (שם יד ז), מהיכן היו, והכתיב וימת כל מקנה מצרים וגו' (שם ט ו), אלא הירא [את] דבר ה' [מעבדי פרעה] הניס את עבדיו ואת מקנהו אל הבתים (שמות שם כ), ואשר לא שם לבו (שם שם כא) אמר הקב"ה נטה ידך על השמים וגו'.