וַיְהִ֞י כַּאֲשֶׁ֧ר הִתְע֣וּ אֹתִ֗י אֱלֹהִים֮ מִבֵּ֣ית אָבִי֒ וָאֹמַ֣ר לָ֔הּ זֶ֣ה חַסְדֵּ֔ךְ אֲשֶׁ֥ר תַּעֲשִׂ֖י עִמָּדִ֑י אֶ֤ל כָּל־הַמָּקוֹם֙ אֲשֶׁ֣ר נָב֣וֹא שָׁ֔מָּה אִמְרִי־לִ֖י אָחִ֥י הֽוּא׃
און עס איז געװען, אַז גאָט האָט מיך פֿאַרװאָגלט פֿון מײַן פאָטערס הױז, האָב איך צו איר געזאָגט: דאָס זאָל זײַן דײַן חסד װאָס דו זאָלסט טאָן מיט מיר: אין איטלעכן אָרט, װאָס מיר װעלן אַהין קומען, זאָג אױף מיר: ער איז מײַנער אַ ברודער.
Rashi
'ויהי כאשר התעו אותי וגו AND IT CAME TO PASS WHEN GOD CAUSED ME TO WANDER etc. — Onkelos translates it in his own way, but it can be explained in another manner that is also appropriate: When the Holy One, blessed be He, brought me forth from my father’s house to be a nomad, wandering from place to place, I knew that I would traverse places where there are wicked people ואמר לה זה חסדך AND so I SAID UNTO HER THIS IS THY LOVINGKINDNESS [WHICH THOU SHALT SHOW UNTO ME].
Chizkuni
כאשר התעו אותי אלוקים, “When G-d caused me to wander, etc,” Avraham refers to the time after he had been saved from Nimrod’s furnace when that ruler had expelled him from his country. He had not really had a permanent residence anywhere ever since. He had only been relatively safe after having defeated Nimrod (Amrafel) and his armies as reported in Genesis chapter 14.
Ibn Ezra
1. "In the Holy Tongue, its taste travels from place to place and did not know to where it went. Behold, he was wandering in a field and this is not wandering in the heart. Write also why you were tortured by God.