"We were talking about something, and I had only recently left Jahiliyyah behind, so I swore by Al-Lat and Al-'Uzza. The Companions of the Messenger of Allah said to me: 'What a bad thing you have said! Go to the Messenger of Allah and tell him, for we think that you have committed Kufr.' So I went to him and told him, and he said to me: 'Say: La ilaha illallah wahdahu la sharika lah (There is none worthy of worship except Allah alone, without partner) three times, and seek refuge with Allah from the Shaitan three times, and spit dryly to your left three times, and do not say that again.'" (Using translation from Nasāʾī 3776)
كُنَّا نَذْكُرُ بَعْضَ الْأَمْرِ وَأَنَا حَدِيثُ عَهْدٍ بِالْجَاهِلِيَّةِ فَحَلَفْتُ بِاللَّاتِ وَالْعُزَّى فَقَالَ لِي أَصْحَابُ رَسُولِ اللهِ ﷺ بِئْسَمَا قُلْتَ ائْتِ رَسُولَ اللهِ ﷺ فَأَخْبِرْهُ فَإِنَّا لَا نَرَاكَ إِلَّا كَفَرْتَ فَلَقِيتُهُ فَأَخْبَرْتُهُ فَقَالَ «قُلْ لَا إِلَهَ إِلَّا اللهُ وَحْدَهُ لَا شَرِيكَ لَهُ ثَلَاثَ مَرَّاتٍ وَتَعَوَّذْ بِاللهِ مِنَ الشَّيْطَانِ ثَلَاثَ مَرَّاتٍ وَاتْفِلْ عَنْ يَسَارِكَ ثَلَاثَ مَرَّاتٍ وَلَا تَعُدْ لَهُ»