Another interpretation: "If from a thread" — I praise your children with a thread, as it is said: "Like a scarlet thread are your lips" (Song of Songs 4:3). Another interpretation: You said, "If from a thread to a sandal strap" — by virtue of this I exact punishment from their enemies, as it is said: "Upon Edom I will cast my shoe" (Psalms 60:10). You spurned the reward of flesh and blood; see what reward is prepared for you before Me, as it is said: "Your reward shall be very great" (Genesis 15:1).
Abraham Refuses the King of Sodom and Earns God's Reward
Midrash Tanchuma Buber, Lech Lecha 17:8
ד"א אם מחוט, משבח אני לבניך בחוט, שנאמר כחוט השני (שם ד ג). ד"א אמרת אם מחוט ועד שרוך נעל, בזכות כך אני פורע לשונאיהם, שנאמר (ועל) [על] אדום אשליך נעלי (תהלים ס י), אתה מאסת שכרו של בשר ודם, ראה מה שכר מתוקן לך לפני, שנאמר שכרך הרבה מאד (בראשית טו א).