‘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. Sharh as-sunna has the wording of al-Masabih, saying that some transmitters traced it back to the Prophet on ‘A’isha’s authority.
He reported God’s Messenger as saying, "I swear by God that it is more sinful in God’s sight for one of you to persist in his oath regarding his family than to give for it the atonement God has imposed.”