Abdullah bin Umar reported,

Zayd bin Amr bin Nufayl set out for Sham in search of the true religion to follow. He met a Jewish scholar and asked him about his religion, saying, "I may well embrace your faith, so tell me about it."The scholar replied, "You cannot be of our religion unless you take your share of Allah's wrath."Zayd said, "It is from Allah's wrath that I am fleeing, and I will never bear any of Allah's wrath, nor could I endure it. Can you direct me to something else?"The scholar said, "I know of nothing except that you become a Hanif."Zayd asked, "And what is a Hanif?"He answered, "The religion of Ibrahim. He was neither a Jew nor a Christian, and he worshipped none but Allah."So Zayd went on and met a Christian scholar, and mentioned the same thing to him. The Christian said, "You cannot be of our religion unless you take your share of Allah's curse."Zayd replied, "It is from Allah's curse that I am fleeing, and I will never bear any of Allah's curse or His wrath, nor could I endure it. Can you direct me to something else?"The scholar said, "I know of nothing except that you become a Hanif."Zayd asked, "And what is a Hanif?"He answered, "The religion of Ibrahim. He was neither a Jew nor a Christian, and he worshipped none but Allah."When Zayd heard what they said about Ibrahim عليه السلام, he departed, and once he was out in the open he raised his hands and said, "O Allah, I bear witness that I am upon the religion of Ibrahim."

Bukhari 3827

Sahih

قال موسى حدثني سالم بن عبد الله ولا أعلمه إلا تحدث به

عن ابن عمر

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

البخاري 3827صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Virtues of the Ansar
Chapter
Hadith of Zayd bin Amr bin Nufayl
Numbering
Darussalam 3827
Bukhari 3827