"And the LORD remembered Sarah" (Genesis 21:1). At the hour when Sarah was given the tidings that she would have Isaac, Sarah was praying before the Place, blessed be He: "Since You have given me seed, why should there be so great a servitude as this?" The Holy One, blessed be He, said to her: "I will subtract from the count, corresponding to your years and corresponding to the years of Abraham, which are one hundred and ninety; and therefore Israel will not be enslaved in Egypt except for two hundred and ten years." This is what Scripture says: "And the LORD remembered Sarah as He had said, and the LORD did unto Sarah as He had spoken" (Genesis 21:1).
Why Sarah's Prayer Shortened Israel's Bondage in Egypt
Midrash Aggadah, Genesis 21:1
וה' פקד את שרה. בשעה שנתבשרה שרה שיהיה לה יצחק, היתה שרה מתפללת לפני המקום ב"ה הואיל ונתת לי זרע מדוע שיהא שעבוד גדול כזה, אמר לה הקב"ה אני אגרע מן המנין כנגד שנים שלך, וכנגד שנים של אברהם שהם ק"ץ, ולפיכך לא ישתעבדו ישראל במצרים כי אם ר"י שנה, וזהו שאמר הכתוב וה' פקד את שרה כאשר אמר ויעש ה' לשרה כאשר דבר: