Bereshit / Genesis 30:22
וַיִּזְכֹּר אֱלֹהִים אֶת־רָחֵל וַיִּשְׁמַע אֵלֶיהָ אֱלֹהִים וַיִּפְתַּח אֶת־רַחְמָהּ׃
And the Almighty remembered Rachel, and the Almighty listened to her and opened her womb.
Pshat פְּשָׁט
What He remembered
Rashi explains what the Almighty remembered: Rachel gave her sister the signs she had agreed on with Yaakov (Jacob), so that Leah would not be shamed on the first night. And Rachel also feared that Yaakov would send her away since she had no children, and she would fall to Esav (Esau). Esav too thought of this when he heard she had no children: so says an ancient poet in a prayer for Rosh Hashanah. Radak adds: it seemed she had been forgotten, since all the others bore and she did not. God saw her humiliation and remembered her, and the time came when He answered all her prayers.
How Rashi and Radak explain it
Remez רֶמֶז
Remembered, not visited
Chizkuni points out: the verse has the name "the Almighty" (אֱלֹהִים), which speaks of strict judgement, not the name of mercy. Happy are the righteous, who turn the quality of judgement into the quality of compassion. Agra DeKala, in his teacher's name, notes: of Sarah it says "visited" (פָּקַד), and of Rachel "remembered" (זָכַר), and "remembering" stands higher. From Sarah came Yitzchak (Isaac), and from him Esav (Esau) too, so the accusation against her was not so strong. But Rachel's children were all righteous, from her was born Yosef (Joseph), Esav's adversary, and the accuser strove to keep her from bearing. So her children had to come from a high place where strangers have no access.
How Chizkuni and Agra DeKala explain it
Drash דְּרָשׁ
Three keys
Bereshit Rabbah asks: what did God remember of Rachel? Her silence for her sister's sake: when Leah was given to Yaakov (Jacob), she knew and kept silent. And more: she brought a rival into her own house. Rabbi Tanchuma in the name of Rabbi Bivi teaches: the Holy One, blessed is He, has three keys: the key of the grave, the key of the rains and the key of the womb. Midrash Tanchuma (Buber) tells: when Rivka (Rebecca) bore twins, Lavan had two daughters, and people said: the elder for the elder, the younger for the younger. Leah heard of Esav's (Esau's) deeds and wept, so her eyes became "tender". And Rachel, while she had no son, feared Esav would take her. When Yosef (Joseph) was born, she said: "The Almighty has taken away my disgrace."
How Bereshit Rabbah and Midrash Tanchuma (Buber) explain it
Sod סוֹד
For the sake of Heaven
Rabbi Levi Yitzchak of Berditchev asks: Yaakov (Jacob) had sons from Leah and from the maidservants, so why would he send Rachel away? So Rashi's two explanations are one. When Rachel gave Leah the signs, she did not yet know that Yaakov would marry her too. She feared that now she herself would fall to Esav (Esau), and still she gave the signs so as not to shame her sister. When Yaakov learned of this and understood that her intention was for the sake of Heaven, he loved Rachel even more: "and he loved Rachel more than Leah", that is, because of Leah. The Seer of Lublin explains why "remembered" is said of Rachel and not "visited": Yosef (Joseph) is the power that gives and adds. Hence "has taken away (אָסַף)", of the gathering of the exiles, and "may He add (יֹסֵף)", of the future redemption.
How Kedushat Levi and Divrei Emet explain it