Another interpretation: “He made His ways known to Moses” (Ps. 103:7), for the Holy One, blessed be He, alone knew the appointed end of the Egyptian exile, as it is said, “And God saw the children of Israel, and God knew” (Exod. 2:25). And to whom did He make it known? To Moses, as it is said, “Now Moses was tending [the flock]” (Exod. 3:1).
God Reveals the End of Egyptian Exile to Moses Alone
Midrash Tanchuma Buber, Shemot 9:2
ד"א יודיע דרכיו למשה, שהקב"ה בלבד היה יודע את הקץ של גלות מצרים שנאמר וירא אלהים את בני ישראל וידע אלהים (שם ב כה), ולמי הודיע למשה, שנאמר ומשה היה רועה וגו'.