Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
bayhaqi:19863Abū ʿAbdullāh al-Ḥāfiẓ > al-Ḥasan b. Muḥammad b. Ḥalīm al-Marwazī > Abū al-Muwajjih > ʿAbdān > ʿAbdullāh > Hishām b. ʿUrwah from his father > ʿĀʾishah from my father

Abu Bakr As-Siddiq had never broken his oaths till Allah revealed the expiation for the oaths. Then he said, "If I take an oath to do something and later on I find something else better than the first one, then I do what is better and make expiation for my oath." (Using translation from Bukhārī 6621)   

البيهقي:١٩٨٦٣فَقَدْ أَخْبَرَنَا أَبُو عَبْدِ اللهِ الْحَافِظُ أنبأ الْحَسَنُ بْنُ مُحَمَّدِ بْنِ حَلِيمٍ الْمَرْوَزِيُّ أنبأ أَبُو الْمُوَجِّهِ أنبأ عَبْدَانُ أنبأ عَبْدُ اللهِ عَنْ هِشَامِ بْنِ عُرْوَةَ عَنْ أَبِيهِ عَنْ عَائِشَةَ ؓ أَنَّ

أَبَا بَكْرٍ ؓ لَمْ يَحْنَثْ فِي يَمِينٍ قَطُّ حَتَّى أَنْزَلَ اللهُ كَفَّارَةَ الْيَمِينِ فَقَالَ لَا أَحْلِفُ عَلَى يَمِينٍ فَرَأَيْتُ غَيْرَهَا خَيْرًا مِنْهَا إِلَّا أَتَيْتُ الَّذِي هُوَ خَيْرٌ وَكَفَّرْتُ عَنْ يَمِينِي  

رَوَاهُ الْبُخَارِيُّ فِي الصَّحِيحِ عَنْ مُحَمَّدِ بْنِ مُقَاتِلٍ عَنْ عَبْدِ اللهِ بْنِ الْمُبَارَكِ

See similar narrations below:

Collected by Bukhārī
bukhari:6621Muḥammad b. Muqātil Abū al-Ḥasan > ʿAbdullāh > Hishām b. ʿUrwah from his father > ʿĀʾishah from my father

Abu Bakr As-Siddiq had never broken his oaths till Allah revealed the expiation for the oaths. Then he said, "If I take an oath to do something and later on I find something else better than the first one, then I do what is better and make expiation for my oath."  

البخاري:٦٦٢١حَدَّثَنَا مُحَمَّدُ بْنُ مُقَاتِلٍ أَبُو الْحَسَنِ أَخْبَرَنَا عَبْدُ اللَّهِ أَخْبَرَنَا هِشَامُ بْنُ عُرْوَةَ عَنْ أَبِيهِ عَنْ عَائِشَةَ

أَنَّ أَبَا بَكْرٍ ؓ لَمْ يَكُنْ يَحْنَثُ فِي يَمِينٍ قَطُّ حَتَّى أَنْزَلَ اللَّهُ كَفَّارَةَ الْيَمِينِ وَقَالَ لاَ أَحْلِفُ عَلَى يَمِينٍ فَرَأَيْتُ غَيْرَهَا خَيْرًا مِنْهَا إِلاَّ أَتَيْتُ الَّذِي هُوَ خَيْرٌ وَكَفَّرْتُ عَنْ يَمِينِي