From Sahih Bukhari (Hadith 4860):
Narrated Abu Huraira:Allah's Messenger (ﷺ) said, "Whomever takes an oath in which he mentions Lat and `Uzza (forgetfully), should say: None has the right to be worshipped but Allah, and whoever says to his companion. 'Come along, let us gamble' must give alms (as an expiation)
Reference: Bukhari 4860