כִּ֤י לֹ֪א יָנ֡וּחַ שֵׁ֤בֶט הָרֶ֗שַׁע עַל֮ גּוֹרַ֪ל הַֽצַּדִּ֫יקִ֥ים לְמַ֡עַן לֹא־יִשְׁלְח֖וּ הַצַּדִּיקִ֨ים בְּעַוְלָ֬תָה יְדֵיהֶֽם׃
악인의 권세가 의인의 업에 미치지 못하리니 이는 의인으로 죄악에 손을 대지 않게 함이로다
Or HaChaim
The word ליעקב may have an additional meaning here. Her major concern was the fact that she was unable to bear children for an outstandingly righteous man such as Jacob. Had Jacob not been clearly righteous, she would have attributed his bad luck to a character defect in her husband. Knowing that she herself was righteous she could not understand why the promise contained in Psalms 125,3 that "the scepter of the wicked will not be allotted to the fate of the righteous," would not apply to their union. Had Jacob not been so clearly a pious man she could have attributed their lack of success to a shortcoming in Jacob. As it was this was impossible. Therefore, she was jealous of her sister who had succeeded where she had failed.
Rabbeinu Bahya
Rabbeinu Chananel wrote that this time Avraham divorced Sarah when he came to Geror because he was afraid that the local people might kill him if he were to admit that Sarah was his wife. Nonetheless, G’d did not allow her to be separated from Avraham. Neither did He allow the righteous woman Sarah to remain with the wicked Avimelech as it is not G’d’s way to “allow the scepter of the wicked to rest upon the land allotted to the righteous” (Psalms, 125,3). The divorce was considered invalid as it had been prompted only by Avraham fearing for his life. This is what the Torah meant when G’d described Sarah as בעולת בעל, a married woman,” in the dream in which He appeared to Avimelech. He made it plain to Avimelech that the technical status of Sarah as a divorced woman was caused only by circumstances over which Avraham had not had any control at the time.
When Avimelech challenged G’d by saying: “will You kill people although they are innocent?” He referred to the status of Sarah as a divorced woman, claiming that he could not have known that her divorce was legally invalid. By using the expression הגוי, he implied that amongst the Gentiles there is no distinction between divorces which result from the free will of the husband and others which were the result of duress. Furthermore, he claimed that he was totally righteous not having violated her. So why would G’d threaten to kill him? Another factor in his favour was that her brother Avraham had personally told him that Sarah was his sister, something which Sarah herself had confirmed time after time so that he could claim he had taken her not only in innocence but that even his hands were clean seeing he had not forced his attentions upon her!
When Avimelech challenged G’d by saying: “will You kill people although they are innocent?” He referred to the status of Sarah as a divorced woman, claiming that he could not have known that her divorce was legally invalid. By using the expression הגוי, he implied that amongst the Gentiles there is no distinction between divorces which result from the free will of the husband and others which were the result of duress. Furthermore, he claimed that he was totally righteous not having violated her. So why would G’d threaten to kill him? Another factor in his favour was that her brother Avraham had personally told him that Sarah was his sister, something which Sarah herself had confirmed time after time so that he could claim he had taken her not only in innocence but that even his hands were clean seeing he had not forced his attentions upon her!
Ramban
NOW THE MEN OF SODOM WERE WICKED AND SINNERS. The purport thereof, as Rashi wrote, is that Scripture accuses Lot for not restraining himself from dwelling with them and also speaks of the merit of the righteous one [Abraham] whose lot did not fall in a place of wickedness for the rod of wickedness shall not rest upon the lot of the righteous.107Psalms 125:3. And all the cities of the Plain were wicked and sinners against the Eternal exceedingly. This was why they alone were overthrown even though all the Canaanites were people of great abominations, for so it is written.108Leviticus 18:3.