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).
Sahih al-Bukhari Book 65, Hadith 381