But after he had been there a long time, Abimelech king of the Philistines looked out of the window, and saw Isaac just as he was caressing Rebekah his wife.