[Another interpretation of (Gen. 30:22): "And God remembered Rachel."] This is what Scripture says (Ps. 98:3): "He has remembered His loving-kindness and His faithfulness." It speaks of Joshua, who was among the children of Rachel's children. (Continuing the verse:) "All the ends of the earth have seen the salvation of our God" (ibid.) — that salvation which Joshua performed, as it is said (Josh. 10:12): "Sun, stand still over Gibeon."
God Remembers Rachel and Her Descendant Joshua Stops the Sun
Midrash Tanchuma Buber, Vayetzei 18:1
[ד"א ויזכר אלהים את רחל]. זש"ה זכר חסדו ואמונתו (תהלים צח ג), מדבר ביהושע, שהוא מבני בניה של רחל, וראו כל אפסי ארץ את ישועת אלהינו (שם), אותה ישועה שעשה יהושע, שנאמר שמש בגבעון דום (יהושע י' יב).