Abu Hurairah reported: The Messenger of Allah (peace be upon him) said: "Whoever among you swears and says in his oath 'By al-Lat,' let him say La Ilaha Illallah. And whoever says to his companion: 'Come, I will gamble with you,' let him give charity."
(Sahih Muslim Book - 27, Hadith - 4260)
https://www.alim.org/hadith/sahih-muslim/27/4260/