Sahih al-Bukhari, Book 28, Hadith 23 (Bukhari 1775)
Narrated Ibn `Abbas:
The Prophet (ﷺ) delivered a sermon at `Arafat and said, "Whoever does not get an Izar can wear trousers, and whoever cannot get a pair of shoes can wear Khuffs (socks made from thick fabric or leather)."