At first things because of his Deception Abraham acquires many possessions including maidservants one of which was probably Hagar who late becomes the mother of Ishmael. However God sends plagues on Pharaoh’s house. This Pharaoh was quite possibly Khufu the builder of the great pyramid of giza or his son. In any event this causes Pharaoh to realize that Sarah was Abraham wife and sends them away.
God actually used this to get Abraham back on track and back to the land of Canaan where God wanted him.
These event would have taken place in the 19th century BC. Now it is true that conventional dating of Egyptian History places Khufu in the 26th century BC but there exists an improved chronology that corrects the problems of the conventional chronology. This correction moves Khufu to the 19th century BC.