Shemot / Exodus 1:17 · Sod
וַתִּירֶאןָ הַמְיַלְּדֹת אֶת־הָאֱלֹהִים וְלֹא עָשׂוּ כַּאֲשֶׁר דִּבֶּר אֲלֵיהֶן מֶלֶךְ מִצְרָיִם וַתְּחַיֶּיןָ אֶת־הַיְלָדִים׃
But the midwives feared the Almighty and did not do as the king of Egypt had told them, and they kept the boys alive.
Sod סוֹד
Did not yield, not refused
The midrash said: Pharaoh pressed the midwives to sin, "and they did not yield". Why not "they did not want to"? And why does the Torah speak of the midwives at such length, when the hero of this book is Moshe?
Mei HaShiloach: "did not want to" means the desire was there and had to be overcome. "Did not yield" means the sin had no relation to them at all: whoever is truly bound to his root, temptation does not even enter. Shelah: the world stands on three things: Torah, service and acts of kindness. In Egypt they had three pillars: Moshe is Torah, Aharon (Aaron) is service, and Miryam is acts of kindness, for she "kept the children alive".
How Mei HaShiloach and Shnei Luchot HaBrit explain it
Mei HaShiloach And the midwives feared the Almighty and did not do as the king of Egypt spoke to them etc
In the Gemara (Sotah 11b) it says: Rabbi Yose bar Chanina said: this teaches that he pressed them to sin, and they did not yield. I heard: it does not say "they did not want to", it says "they did not yield". For they had no connection to it at all, not even the beginning of a fall in thought. "Not wanting" is mere unwillingness. But "not yielding" means that one who truly cleaves to his root has no connection to it at all.
Shnei Luchot HaBrit
Since the matter of Egypt is the creation of the world in Nisan, and the world stands on Torah, service and acts of kindness, so it was revealed in Egypt. In the midrash Shemot Rabbah (26:1): "I had no ease, no quiet" (Iyov / Job 3:26) up to "for I drew him out of the water" (2:10). Moshe is the pillar of Torah, the Torah of Moshe. Aharon is the pillar of service. Miryam is the pillar of acts of kindness: "and they kept the children alive", supplying them and so on. Three gifts and so on: the manna, "the Torah was given only to those who ate the manna", therefore through Moshe. The cloud through Aharon, for the cloud covered the Mishkan (Tabernacle). The well of living water and of kindness: Michael, snow, the root of kindness, therefore it came through Miryam.
Takeaway
"The world stands on three things: on Torah, on service and on acts of kindness" (Pirkei Avot / Ethics of the Fathers 1:2).
Three gifts of the wilderness: the manna (מָן), the clouds of glory and Miryam's well (Taanit 9a). When Miryam died, the well vanished and the people had no water (Bamidbar / Numbers 20:1–2).
In Kabbalah the angel Michael stands on the side of kindness (חֶסֶד), on the right.