Hadithcore
Mishkat al-Masabih, 3417

‘A’isha said that the verse, "God will not take you to account for what is futile in your oaths” (Al-Qu’ran 2:225; 5:89) was sent down about such phrases as "No, by God,” and "Yes, by God.” Bukhari transmitted it. <i>Sharh as-sunna</i> has the wording of <i>al-Masabih</i>, saying that some transmitters traced it back to the Prophet (ﷺ) on ‘A’isha’s authority.

عَن عَائِشَةَ رَضِيَ اللَّهُ عَنْهَا قَالَتْ: أُنْزِلَتْ هَذِهِ الْآيَةُ: (لَا يُؤَاخِذُكُمُ اللَّهُ بِاللَّغْوِ فِي أَيْمَانِكُمْ) فِي قَوْلِ الرَّجُلِ: لَا وَاللَّهِ وَبَلَى وَاللَّهِ. رَوَاهُ الْبُخَارِيُّ وَفِي شَرْحِ السُّنَّةِ لَفْظُ الْمَصَابِيحِ وَقَالَ: رَفَعَهُ بَعْضُهُمْ عَنْ عَائِشَةَ رَضِيَ اللَّهُ عَنهُ

References1 variant
In-Book Reference
Book 15, Hadith 12