Hadith.4279 - Abu Basir narrated from Abu Abdillah (as) regarding the saying of Allah (swt), the Almighty and Glorious: "Allah (swt) does not take you to task for what is unintentional in your oaths" (Surah Al-Baqarah 2:225).
Imam (as) said
"It refers to sayings like 'No, by Allah (swt)' and 'Yes, by Allah (swt).'"