Abu Bakr al-Siddiq, who used to support Mistah bin Uthatha because of his kinship and poverty, said, "By Allah, I will never spend anything on Mistah again after what he said about Ayesha."Then Allah revealed, "And let not those of virtue among you and wealth swear not to give to their relatives" up to His saying "and Allah is Forgiving and Merciful" [Nur 24:22].Abu Bakr al-Siddiq said, "Yes, by Allah, I would love for Allah to forgive me." So he resumed the support he had been giving Mistah and said, "By Allah, I will never withhold it from him." …the rest of the hadith.
قال أبوبكر الصديق- وكان ينفق على مسطح بن أثاثة لقرابته منه وفقره-: والله لا أنفق على مسطح شيئا أبدا بعد الذي قال لعائشة ما قال، فأنزل الله: {ولا يأتل أولوا الفضل منكم} إلى قوله {والله غفور رحيم} قال أبو بكر الصديق: بلى والله إني لأحب أن يغفر الله لي، فرجع إلى مسطح النفقة التي كان ينفق عليه. وقال والله لا أنزعها منه أبدا… الحديث.
Bukhari narrated it in the Book of Military Expeditions (4141), and Muslim narrated it in the Book of Repentance (2770), both of them through various chains from Zuhri, who said, Urwa bin Zubayr, Saeed bin Musayab, Alqama bin Waqqas, and Ubaydullah bin Abdullah bin Utba bin Masud told me, from Ayesha, and he related it.So whoever swears an oath that he will not do something good must make expiation for his oath, and he should still do the good deed and not abandon it merely because of the oath, as stated in the hadith.