Abu Ayub reported,

An Arabi approached the Messenger of Allah ﷺ while he was on a journey and took hold of his camel's halter, or its rein, and said, "Messenger of Allah," or "Muhammad, tell me what will bring me closer to Paradise and distance me from the Fire."The Prophet ﷺ paused, then looked at his companions and said, "He has been granted success," or "He has been guided."Then he asked, "What did you say?"The man repeated his question.The Prophet ﷺ replied, "Worship Allah and associate nothing with Him, establish the prayer, give the zakat, and maintain ties of kinship. Now release the camel."

Muslim 104

Sahih

حدثنا محمد بن عبد الله بن نمير حدثنا أبي حدثنا عمرو بن عثمان حدثنا موسى بن طلحة قال حدثني

أبو أيوب

أن أعرابيا عرض لرسول الله ﷺ وهو في سفر فأخذ بخطام ناقته أو بزمامها ثم قال يا رسول الله أو يا محمد أخبرني بما يقربني من الجنة وما يباعدني من النار قال فكف النبي ﷺ ثم نظر في أصحابه ثم قال لقد وفق أو لقد هدي قال كيف قلت قال فأعاد فقال النبي ﷺ تعبد الله لا تشرك به شيئا وتقيم الصلاة وتؤتي الزكاة وتصل الرحم دع الناقة

مسلم 104صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Faith
Chapter
Faith that admits one to Paradise, and that whoever adheres to what he was commanded will enter Paradise
Numbering
Darussalam 104
Muslim 104