It was narrated that Sa'd said:
"I took an oath by Lat and 'Uzza. The Messenger of Allah (ﷺ) said : 'Say: "La ilaha illallah wahdahu la sharika lahu" (None has the right to be worshipped but Allah alone, with no partner or associate)," then spit toward your left three times, and seek refuge with Allah, and do not do that again."'
English reference: Vol. 3, Book 11, Hadith 2097
Arabic reference: Book 11, Hadith 2175