The Prophet ﷺ sent a cavalry expedition toward Najd, and they brought back a man from Banu Hanifa called Thumama bin Uthal. They tied him to one of the pillars of the mosque.The Prophet ﷺ came out to him and asked, "What do you have to say, Thumama?"He replied, "I have good to offer, Muhammad. If you kill me, you kill a man whose blood carries weight. If you show favor, you show favor to one who is grateful. And if you want wealth, ask for whatever you wish."He was left until the next day. Then the Prophet ﷺ asked him again, "What do you have to say, Thumama?"He replied, "What I told you. If you show favor, you show favor to one who is grateful."He left him until the day after. Then he asked, "What do you have to say, Thumama?"He replied, "I have what I told you."The Prophet ﷺ said, "Release Thumama."He went to a grove of palm trees near the mosque, washed himself, then entered the mosque and said, "I bear witness that there is no god but Allah, and I bear witness that Muhammad is the Messenger of Allah. Muhammad, by Allah, there was no face on earth more hateful to me than yours, but now your face has become the most beloved of all faces to me. By Allah, there was no religion more hateful to me than yours, but now your religion has become the most beloved religion to me. By Allah, there was no land more hateful to me than yours, but now your land has become the most beloved of lands to me. Your cavalry seized me while I was intending to perform Umrah. What do you advise?"The Messenger of Allah ﷺ gave him glad tidings and ordered him to perform Umrah. When he arrived at Makkah, someone said to him, "Have you abandoned your religion?"He replied, "No, but I have embraced Islam with Muhammad, the Messenger of Allah ﷺ. By Allah, not a single grain of wheat will reach you from Yamama until the Prophet ﷺ permits it."
بعث النبي ﷺ خيلا قبل نجد، فجاءت برجل من بني حنيفة يقال له: ثمامة بن أنال، فربطوه بسارية من سواري المسجد، فخرج إليه النبي ﷺ فقال: ما عندك يا ثمامة؟ فقال عندي خير يا محمد، إن تقتلني تقتل ذا دم، وإن تنعم تنعم على شاكر، وإن كنت تريد المال فسل منه ما شئت. فترك حتى كان الغد، ثم قال له: ماعندك يا ثمامة؟ قال: ما قلت لك: إن تنعم تنعم على شاكر. فتركه حتى كان بعد الغد، فقال: ما عندك يا ثمامة؟ فقال عندي ما قلت لك. فقال: أطلقوا ثمامة فانطلق إلى نخل قريب من المسجدفاغتسل ثم دخل المسجد، فقال: أشهد أن لا إله إلا الله، وأشهد أن محمدا رسول الله، يا محمد، والله ما كان على الأرض وجه أبغض إلي من وجهك، فقد أصبح وجهك أحب الوجوه إلي، والله ما كان من دين أبغض إلي من دينك، فأصبح دينك أحب الدين إلي، والله ما كان من بلد أبغض إلي من بلدك، فأصبح بلدك أحب البلاد إلي، وإن خيلك أخذتني وأنا أريد العمرة، فماذا ترى؟ فبشره رسول الله ﷺ وأمره أن يعتمر، فلما قدم مكة قال له قائل: صبوت. قال: لا، ولكن أسلمت مع محمد رسول الله ﷺ، ولا والله لا يأتيكم من اليمامة حبة حنطة حتى يأذن فيها النبي ﷺ.
Bukhari narrated it in the Book of Military Expeditions (4372) and Muslim in the Book of Jihad (59:1764), both through Layth, from Saeed bin Abu Saeed, that he heard Abu Hurairah say, and then he mentioned it.