كتاب الإيمان
1  
Faith
(6c)
Chapter: Reliance on the Book and the Sunnah - Section 3
(6c)
باب الاعتصام بالكتاب والسنة - الفصل الثالث
Mishkat al-Masabih 191, 192
Ibn Mas'ud reported God’s messenger as saying, “God has propounded as a parable a straight path on the sides of which are walls with open doors over which curtains are hanging down. At the top of the path there is one who calls, ‘Go straight on the path and do not follow an irregular course.’ Above that one is another who calls out as often as anyone tries to open any of those doors, ‘Woe to you! do not open it, for if you open it you will go through it.’” He then interpreted it telling that the path is Islam, the open doors are the things God has forbidden, the curtains hanging down are the limits God has set, the crier at the top of the path is the Qur’an, and the one above him is God’s monitor in every believer’s heart. Razin and Ahmad transmitted it. Baihaqi transmitted it in Shu'ab al-iman from an-Nawwas b. Sim'an, as did Tirmidhi in a more concise form.
وَعَنِ ابْنِ مَسْعُودٍ أَنَّ رَسُولَ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ قَالَ: " ضَرَبَ اللَّهُ مَثَلًا صِرَاطًا مُسْتَقِيمًا وَعَنْ جَنَبَتَيِ الصِّرَاطِ سُورَانِ فِيهِمَا أَبْوَابٌ مُفَتَّحَةٌ وَعَلَى الْأَبْوَابِ سُتُورٌ مُرَخَاةٌ وَعِنْدَ رَأْسِ الصِّرَاطِ دَاعٍ يَقُولُ: اسْتَقِيمُوا عَلَى الصِّرَاطِ وَلَا تَعْوَجُّوا وَفَوْقَ ذَلِكَ دَاعٍ يَدْعُو كُلَّمَا هَمَّ عَبْدٌ أَنْ يَفْتَحَ شَيْئًا مِنْ تِلْكَ الْأَبْوَابِ قَالَ: وَيْحَكَ لَا تَفْتَحْهُ فَإِنَّكَ إِنْ تَفْتَحْهُ تَلِجْهُ ". ثُمَّ فَسَّرَهُ فَأَخْبَرَ: " أَنَّ الصِّرَاطَ هُوَ الْإِسْلَامُ وَأَنَّ الْأَبْوَابَ الْمُفَتَّحَةَ مَحَارِمُ اللَّهِ وَأَنَّ السُّتُورَ الْمُرَخَاةَ حُدُودُ اللَّهِ وَأَنَّ الدَّاعِيَ عَلَى رَأْسِ الصِّرَاطِ هُوَ الْقُرْآنُ وَأَنَّ الدَّاعِيَ مِنْ فَوْقِهِ وَاعِظُ اللَّهِ فِي قَلْبِ كُلِّ مُؤمن) رَوَاهُ رزين وَأحمد

وَالْبَيْهَقِيُّ فِي شُعَبِ الْإِيمَانِ عَنِ النَّوَّاسِ بْنِ سَمْعَانَ وَكَذَا التِّرْمِذِيُّ عَنْهُ إِلَّا أَنَّهُ ذَكَرَ أخصر مِنْهُ

Grade: No basis for this wording، see Hadīth 192 instead, Hasan (Zubair `Aliza'i)  لا أصل له بهذا اللفظ، وانظر الحديس ١٩٢، حسن   (زبیر علی زئی) حكم   :
Reference : Mishkat al-Masabih 191, 192
In-book reference : Book 1, Hadith 183