Close-up of sock inscription from the Met’s website
Knitting chart rendition of the sock inscription, created by me.

Some sources suggest that the inscription says “Allah” in Kufic script, while others maintain that it is a simulated inscription that doesn’t have any actual meaning. Both possibilities have precedent in other Islamic textiles, but as I cannot read Arabic myself, I did not explore them in depth.