Zahdam Jarmi reported,

There was bonds of friendship and brotherhood between this clan of Jarm and the Asharis. We were once with Abu Musa Ashari when food was brought to him containing chicken meat. There was a man from Banu Taym Allah present who appeared to be from the freed slaves. Abu Musa invited him to eat with him.The man said, "I once saw it eating something I found disgusting, so I swore I would never eat it."Abu Musa said, "Come, let me tell you about that. I came to the Prophet ﷺ with a group of Asharis asking him to provide us with mounts.He said, 'By Allah, I will not give you mounts, and I have nothing with which to mount you.'Then some captured camels were brought to the Prophet ﷺ, and he asked about us, saying, 'Where are the Ashari group?' He ordered that we be given five fine camels with white humps.When we set off, we said to one another, 'What have we done? The Messenger of Allah ﷺ swore he would not provide us with mounts, and he had nothing with which to mount us, then he gave us mounts. We took advantage of the Messenger of Allah's ﷺ forgetting his oath. By Allah, we will never prosper.'So we returned to him and told him what we had said.He replied, 'It was not I who gave you mounts, but Allah who gave you mounts. By Allah, whenever I swear an oath and then see something better than it, I do the better thing and absolve myself of the oath.'"

Bukhari 7555

Sahih

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

عن زهدم قال

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

البخاري 7555صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Tawhid
Chapter
Saying of Allah, "And Allah created you and what you do"
Numbering
Darussalam 7555
Bukhari 7555