You said "from a thread" (Genesis 14:23) — with it I praise your children: "your lips are like a thread of scarlet" (Song of Songs 4:3). You said "to a shoelace" — in the merit of this I exact punishment from their enemies: "upon Edom I will cast my shoe" (Psalms 60:10).
Praising Israel as Scarlet Thread and Casting the Shoe on Edom
Yalkut Shimoni on Torah 76:4
אַתָּה אָמַרְתָּ אִם מִחוּט, בּוֹ אֲנִי מְשַׁבֵּחַ בָּנֶיךָ, "כְּחוּט הַשָּׁנִי שִׂפְתוֹתַיִךְ" אַתָּה אָמַרְתָּ עַד שְׂרוֹךְ נַעַל, בִּזְכוּת כָּךְ אֲנִי פּוֹרֵעַ מִשּׂוֹנְאֵיהֶם, (תהלים ס, י) "עַל אֱדוֹם אַשְׁלִיךְ נַעֲלִי".