Abu Hurairah reported,

When Khaybar was conquered, a sheep was presented as a gift to the Messenger of Allah ﷺ which had poison in it. The Messenger of Allah ﷺ said, "Gather for me all the Jews who are here."They were gathered for him, and the Messenger of Allah ﷺ said to them, "I am going to ask you about something. Will you be truthful with me about it?"They replied, "Yes, Abu Qasim."The Messenger of Allah ﷺ then asked them, "Who is your father?"They said, "Our father is so-and-so."The Messenger of Allah ﷺ said, "You have lied. Rather, your father is so-and-so."They said, "You have spoken the truth and acted rightly."He said, "Will you be truthful with me about something if I ask you?"They replied, "Yes, Abu Qasim. And if we lie to you, you will recognize our lie just as you recognized it concerning our father."The Messenger of Allah ﷺ then asked them, "Who are the people of the Fire?"They said, "We will be in it for a short time, then you will succeed us in it."The Messenger of Allah ﷺ said to them, "Be despised in it. By Allah, we will never succeed you in it."Then he said to them, "Will you be truthful with me about something if I ask you?"They said, "Yes."He asked, "Did you put poison in this sheep?"They said, "Yes."He asked, "What led you to do that?"They said, "We wanted that if you were a liar, we would be relieved of you, and if you were a prophet, it would not harm you."

Bukhari 5777

Sahih

حدثنا قتيبة حدثنا الليث عن سعيد بن أبي سعيد

عن أبي هريرة أنه قال

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

البخاري 5777صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Medicine
Chapter
Poisoning of the Prophet ﷺ
Numbering
Darussalam 5777
Bukhari 5777