A Bedouin Arabi approached the Messenger of Allah ﷺ while he was on a journey. He took hold of the halter of his camel, or its rein, and said, "Messenger of Allah," or "Muhammad, tell me of something that will bring me close to Paradise and keep me far 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, "You worship Allah without associating anything with Him, establish the prayer, pay the zakat, and maintain ties of kinship. Now release the camel."
أن أعرابيا عرض لرسول الله ﷺ وهو في سفر، فأخذ بخطام ناقته أو بزمامها، ثم قال: يا رسول الله! أو يا محمد! أخبرني بما يقربني من الجنة وما يباعدني من النار. قال: فكف النبي ﷺ، ثم نظر في أصحابه، ثم قال: لقد وفق أو هدي قال: كيف قلت؟ قال: فأعاد. فقال النبي ﷺ: تعبد الله لا تشرك به شيئا، وتقيم الصلاة، وتؤتي الزكاة، وتصل الرحم. دع الناقة.
Bukhari narrated it in the Book of Zakat (1396), and Muslim in the Book of Iman (13), both through the route of Amr bin Uthman, who said, Musa bin Talha narrated to us, saying, Abu Ayub narrated to me, and he recounted it. The wording given is that of Muslim, and the wording of Bukhari is similar, except that in his chain he said, from Ibn Uthman bin Abdullah bin Mawhab.