Nawas bin Saman reported,

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."

Tirmidhi 2859

Sahih

حدثنا علي بن حجر السعدي حدثنا بقية بن الوليد عن بحير بن سعد عن خالد بن معدان عن جبير بن نفير

عن النواس بن سمعان الكلابي قال

قال رسول الله ﷺ إن الله ضرب مثلا صراطا مستقيما على كنفي الصراط زوران لهما أبواب مفتحة على الأبواب ستور وداع يدعو على رأس الصراط وداع يدعو فوقه {والله يدعوا إلى دار السلام ويهدي من يشاء إلى صراط مستقيم} والأبواب التي على كنفي الصراط حدود الله فلا يقع أحد في حدود الله حتى يكشف الستر والذي يدعو من فوقه واعظ ربه

الترمذي 2859صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami Tirmidhi
Book
Parables
Chapter
Likeness Allah sets forth for His servants
Numbering
Darussalam 2859
Tirmidhi 2859