Messenger of Allah ﷺ 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). (Using translation from Bukhārī 4860)
قَالَ رَسُولُ اللهِ ﷺ مَنْ حَلَفَ مِنْكُمْ فَقَالَ فِي حَلِفِهِ بِاللَّاتِ وَالْعُزَّى فَلْيَقُلْ لَا إِلَهَ إِلَّا اللهُ وَمَنْ قَالَ لِصَاحِبِهِ تَعَالَ أُقَامِرْكَ فَلْيَتَصَدَّقْ