Another interpretation of (Genesis 12:1) "Go forth." This is what Scripture says: "Listen, O daughter, and consider, and incline your ear; forget your people and your father's house" (Psalms 45:11). "Listen, O daughter, and consider" — this is Abraham. "And forget your people and your father's house" — this is idolatry, as it is said, "who say to a tree, 'You are my father'" (Jeremiah 2:27). "And the king will desire your beauty" (Psalms 45:12) — this is the King who is King over the kings of kings, the Holy One, blessed be He, to beautify you in the world. Rabbi Abin said: "For He is your lord; bow down to Him" (ibid.). And to what was Abraham comparable? To a flask of balsam that is placed in a cemetery, and no person knew what its fragrance was. What did a certain one do? He took it and carried it from place to place, and its fragrance began to spread abroad in the world. So too was Abraham dwelling among the worshippers of idolatry. The Holy One, blessed be He, said to him: Why are you sitting among the wicked? Go out from among them and make your good deeds known in the world, as it is said, "Go forth."
Why God Told Abraham to Go Forth from the Idolaters
Midrash Tanchuma Buber, Lech Lecha 3:1
ד"א לך לך. זש"ה שמעי בת וראי והטי אזנך ושכחי עמך ובית אביך (תהלים מה יא), שמעי בת וראי, זה אברהם, ושכחי עמך ובית אביך, זו ע"ז שנא' (הוי) אומרים לעץ אבי אתה (ירמיה ב כז), ויתאו המלך יפיך (תהלים שם יב), זה מלך מלכי המלכים הקב"ה ליפותך בעולם. אמר ר' אבין (כי הוא אדוניך והשתחוי לו) (שם) ולמה היה אברהם דומה לצלוחית של אפרסמון שהיא נתונה בבית הקברות ולא היה אדם יודע מהו ריחה, מה עשה אחד, נטלה וטלטלה ממקום למקום, התחיל ריחה נודף בעולם, כך היה אברהם (היה) דר בין עובדי ע"ז, א"ל הקב"ה מה אתה יושב בתוך הרשעים, צא מבינים והודיע מעשיך הטובים בעולם, שנאמר לך לך.