Language:
كتاب الأدب
78  
Good Manners and Form (Al-Adab)
(74)
Chapter: Whoever does not consider as Kafir the person who says that...
(74)
باب مَنْ لَمْ يَرَ إِكْفَارَ مَنْ قَالَ ذَلِكَ مُتَأَوِّلاً أَوْ جَاهِلاً
Sahih al-Bukhari 6107

Narrated Abu Huraira:

Allah's Messenger (ﷺ) said: "Whoever amongst you swears, (saying by error) in his oath 'By Al-Lat and Al- Uzza', then he should say, 'None has the right to be worshipped but Allah.' And whoever says to his companions, 'Come let me gamble' with you, then he must give something in charity (as an expiation for such a sin)." (See Hadith No. 645)

حَدَّثَنِي إِسْحَاقُ، أَخْبَرَنَا أَبُو الْمُغِيرَةِ، حَدَّثَنَا الأَوْزَاعِيُّ، حَدَّثَنَا الزُّهْرِيُّ، عَنْ حُمَيْدٍ، عَنْ أَبِي هُرَيْرَةَ، قَالَ قَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم ‏ "‏ مَنْ حَلَفَ مِنْكُمْ فَقَالَ فِي حَلِفِهِ بِاللاَّتِ وَالْعُزَّى‏.‏ فَلْيَقُلْ لاَ إِلَهَ إِلاَّ اللَّهُ‏.‏ وَمَنْ قَالَ لِصَاحِبِهِ تَعَالَ أُقَامِرْكَ، فَلْيَتَصَدَّقْ ‏"‏‏.‏
Reference : Sahih al-Bukhari 6107
In-book reference : Book 78, Hadith 134
USC-MSA web (English) reference : Vol. 8, Book 73, Hadith 128
  (deprecated numbering scheme)