Abu Huraira reported Allah's Messenger (ﷺ) as saying
He who takes an oath in the course of which he says: By Lat (and al-'Uzza), he should say: There is no god but Allah; and that if anyone says to his friend:" Come and I will gamble with you," he should pay sadaqa.
This hadith has been narrated on the authority of Zuhri.
Abd al-Rahman b. Samura reported Allah's Messenger (ﷺ) as saying
Do not swear by idols, nor by your fathers.