The Messenger of Allah ﷺ said, "Allah has set forth a parable. There is a straight path, and along its two sides are two walls with open doors, and over the doors are curtains. A caller stands at the head of the path calling out, and another caller calls from above it. 'And Allah invites to the Home of Peace and guides whom He wills to a straight path' [Yunus 10:25]. The doors along the two sides of the path are the limits set by Allah, and no one falls into Allah's limits until the curtain is lifted. The one who calls from above is the admonisher from his Lord."
حدثنا علي بن حجر السعدي حدثنا بقية بن الوليد عن بحير بن سعد عن خالد بن معدان عن جبير بن نفير
قال رسول الله ﷺ إن الله ضرب مثلا صراطا مستقيما على كنفي الصراط زوران لهما أبواب مفتحة على الأبواب ستور وداع يدعو على رأس الصراط وداع يدعو فوقه {والله يدعوا إلى دار السلام ويهدي من يشاء إلى صراط مستقيم} والأبواب التي على كنفي الصراط حدود الله فلا يقع أحد في حدود الله حتى يكشف الستر والذي يدعو من فوقه واعظ ربه
[Sahih]. Nasai also reported it in Sunan al-Kubra, no. 11233, from Ali bin Hajar, and Ahmad, 4/184, from the hadith of Baqiyyah with this chain, and he specified that he heard it directly. Ahmad also reported it, 4/182, with a sahih chain from Jubayr bin Nufayr with this chain. The statement of Fazari is sahih from him.