[And the LORD remembered Sarah (Genesis 21:1).] This is what Scripture says: "And all the trees of the field shall know that I am the LORD…" (Ezekiel 17:24). Who are the trees of the field? Rabbi Jacob bar Aha said: These are human beings, as it is said, "for the human is the tree of the field" (Deuteronomy 20:19). "I have brought low the high tree" (Ezekiel, there) — this is Nebuchadnezzar. "I have made high the low tree" (Ezekiel 17:24) — this is Hananiah, Mishael, and Azariah, who were cast into the fiery furnace. "I have dried up the moist tree" (there) — this is Belshazzar. "I have made the withered tree flourish" (there) — this is Daniel.
The Trees of the Field and Sarah Remembered in Tanchuma
Midrash Tanchuma Buber, Vayera 33:1
[וה' פקד את שרה]. זש"ה וידעו כל עצי השדה כי אני ה' וגו' (יחזקאל יז כד) מי הן עצי השדה, ר' יעקב בר אחא אמר אלו בני אדם, שנאמר כי האדם עץ השדה (דברים כ יט), השפלתי עץ גבוה (יחזקאל שם), זה נבוכדנצר, הגבהתי עץ שפל (יחזקאל יז כד), זה חנניה מישאל ועזריה שהושלכו לכבשן האש, הובשתי עץ לח (שם), זה בלשצר, הפרחתי עץ יבש (שם), זה דניאל.