(28) Events of the Day of Resurrection and the Beginning of Creation
كتاب أحوال القيامة وبدء الخلق
(7b) Chapter: Description of Hell and its Inhabitants - Section 2
(7) باب صفة النار وأهلها - الفصل الثاني
Mishkat al-Masabih 5681 
Abu Sa'id al-Khudri reported the Prophet as saying, "The awnings of hell have four thick walls, each wall a distance of forty years." Tirmidhi transmitted it.
وَعَنْ أَبِي سَعِيدٍ الْخُدْرِيِّ عَنِ النَّبِيِّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ قَالَ: لِسُرَادِقِ النَّارِ أَرْبَعَةُ جُدُرِ كِثَف كل جِدَار مسيرَة أَرْبَعِينَ سنة ". رَوَاهُ التِّرْمِذِيّ
Reference : Mishkat al-Masabih 5681
In-book reference : Book 28, Hadith 152