Imam al-Nawawi's introduction to this chapter
قَالَ الله تَعَالَى: ﴿لاَ يُؤاخِذُكُمُ اللهُ بِاللَّغْوِ في أَيْمَانِكُمْ وَلكِنْ يُؤاخِذُكُمْ بِمَا عَقَّدْتُمُ الأيمَانَ فَكَفَّارَتُهُ إطْعَامُ عَشَرَةِ مَسَاكِينَ مِنْ أوْسَطِ مَا تُطْعِمُونَ أهْلِيكُمْ أَوْ كِسْوَتُهُمْ أَوْ تَحْرِيرُ رَقَبَةٍ فَمَنْ لَمْ يَجِدْ فَصِيَامُ ثَلاَثَةِ أَيَّامٍ ذَلِكَ كَفَّارَةُ أَيْمَانِكُمْ إِذَا حَلَفْتُمْ وَاحْفَظُوا أيْمَانَكُمْ﴾ [المائدة: ٨٩].
Allah Almighty said: "Allah does not take you to account for what is unintentional (without intent) in your oaths, but He takes you to account for the oaths you have firmly made. So its expiation is the feeding of ten poor people from the average of what you feed your families, or clothing them, or freeing a neck (a slave). Whoever does not find (this), then fasting for three days. That is the expiation for your oaths when you swear (and break them). And guard your oaths." (Surah al-Ma'idah: 89)
وعن عائشة رضي الله عنها، قالت: أُنْزِلَتْ هذِهِ الآية: ﴿لاَ يُؤاخِذُكُمُ اللهُ بِاللَّغْوِ في أَيْمَانِكُمْ﴾ في قَوْلِ الرَّجُلِ: لا واللهِ، وَبَلَى واللهِ. رواه البخاري.
It is narrated from Sayyidah Aishah (may Allah be pleased with her) that she said: This verse, "Allah does not take you to account for what is unintentional in your oaths", was revealed concerning a man's saying: No, by Allah, and yes, by Allah.
(Narrated by al-Bukhari)