1068 صحيح حديث أَبِي هُرَيْرَةَ رضي الله عنه، قَالَ: قَالَ رَسُولُ اللهِ صَلَّى اللهُ عَلَيْهِ وَسَلَّمَ : مَنْ حَلَفَ فَقَالَ فِي حَلِفِهِ وَالَّلاتِ وَالْعُزَّى، فَلْيَقُلْ، لاَ إِلهَ إِلاَّ اللهُ؛ وَمَنْ قَالَ لِصَاحِبِهِ، تَعَالَ أُقَامِرْك، فَلْيَتَصَدَّقْ
Narrated Abu Huraira (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: Whoever swears an oath and says, "By al-Lat and al-'Uzza," he should say La ilaha illallah (to renew his faith), and whoever says to his companion, "Come, let us gamble," he should give charity.
Brief Explanation
The command to recite the kalimah of tawhid was given for the person who had newly entered Islam. Since previously these polytheistic phrases were habitual on his tongue, it was stated that if, by mistake, such phrases come to one's tongue, then one should immediately make amends for it. (Raaz)