Sahih al-Bukhari 1841
Narration text is preserved in its supplied Arabic and English. Translated interfaces and reading guides do not add narration translations in other languages.
مَنْ لَمْ يَجِدِ النَّعْلَيْنِ فَلْيَلْبَسِ الْخُفَّيْنِ، وَمَنْ لَمْ يَجِدْ إِزَارًا فَلْيَلْبَسْ سَرَاوِيلَ "
Narrated Ibn `Abbas:
I heard the Prophet (ﷺ) delivering a sermon at `Arafat saying, "If a Muhrim does not find slippers, he could wear Khuffs (socks made from thick fabric or leather, but he has to cut short the Khuffs below the ankles), and if he does not find an Izar (a waist sheet for wrapping the lower half of the body) he could wear trousers."
Full reference and source
Sahih al-Bukhari 1841 In-book : Book 28, Hadith 21 USC-MSA web (English) : Vol. 3, Book 29, Hadith 67 (deprecated)
View source on Sunnah.com (opens in a new tab)