IBNMAJAH 2931:
from Ibn ʿAbbās —
“I heard the Prophet ﷺ delivering a sermon – (one of the narrators) Hisham said: ‘On the pulpit’ – and he said: ‘Whoever does not have a waist wrap, let him wear pants or pajamas, and whoever does not have sandals, let him wear leather socks.’” In his narration, Hisham said: “If he does not find any, then let him wear pants or pajamas.”
ابن ماجة ٢٩٣١:
عن ابن عباس —
سَمِعْتُ النَّبِيَّ ﷺ يَخْطُبُ قَالَ هِشَامٌ عَلَى الْمِنْبَرِ فَقَالَ مَنْ لَمْ يَجِدْ إِزَارًا فَلْيَلْبَسْ سَرَاوِيلَ وَمَنْ لَمْ يَجِدْ نَعْلَيْنِ فَلْيَلْبَسْ خُفَّيْنِ وَقَالَ هِشَامٌ فِي حَدِيثِهِ فَلْيَلْبَسْ سَرَاوِيلَ إِلاَّ أَنْ يَفْقِدَ
hadithunlocked.com