Sunan Ibn Majah, Book 25, Hadith 3043 (In-Book)

It was narrated that Ibn ‘Abbas said: “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.”

حَدَّثَنَا هِشَامُ بْنُ عَمَّارٍ، وَمُحَمَّدُ بْنُ الصَّبَّاحِ، قَالاَ حَدَّثَنَا سُفْيَانُ بْنُ عُيَيْنَةَ، عَنْ عَمْرِو بْنِ دِينَارٍ، عَنْ جَابِرِ بْنِ زَيْدٍ أَبِي الشَّعْثَاءِ، عَنِ ابْنِ عَبَّاسٍ، قَالَ سَمِعْتُ النَّبِيَّ ـ صلى الله عليه وسلم ـ يَخْطُبُ - قَالَ هِشَامٌ عَلَى الْمِنْبَرِ - فَقَالَ ‏"‏ مَنْ لَمْ يَجِدْ إِزَارًا فَلْيَلْبَسْ سَرَاوِيلَ وَمَنْ لَمْ يَجِدْ نَعْلَيْنِ فَلْيَلْبَسْ خُفَّيْنِ ‏"‏ ‏.‏ وَقَالَ هِشَامٌ فِي حَدِيثِهِ ‏"‏ فَلْيَلْبَسْ سَرَاوِيلَ إِلاَّ أَنْ يَفْقِدَ ‏"‏ ‏.‏

sunnah.com