Abu Musa Ashari reported,

I came to the Messenger of Allah ﷺ with a group of the Ashari clan and found him angry. We asked him to provide us with mounts, but he swore that he would not give us any. Then he said, "By Allah, if Allah wills, I shall never swear an oath and then see something better than it without doing what is better and absolving myself of the oath."

Bukhari 6680

Sahih

حدثنا أبو معمر حدثنا عبد الوارث حدثنا أيوب عن القاسم عن زهدم قال كنا عند

أبي موسى الأشعري قال

أتيت رسول الله ﷺ في نفر من الأشعريين فوافقته وهو غضبان فاستحملناه فحلف أن لا يحملنا ثم قال والله إن شاء الله لا أحلف على يمين فأرى غيرها خيرا منها إلا أتيت الذي هو خير وتحللتها

البخاري 6680صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Oaths and vows
Chapter
Oaths regarding what one does not own, in disobedience, and in anger
Numbering
Darussalam 6680
Bukhari 6680