Sunan an-Nasa'i, Volume 4, Book 35, Hadith 3808 (DarusSalam) ⓘ
Mus'ab bin Sa'd narrated that his father said: "I swore by Al-Lat and Al-'Uzza and my companions said to me: 'What a bad thing you have said! You have said something horrible.' So I went to the Messenger of Allah and told him about that. He said: 'Say: La ilaha illallah wahdahu la sharika lah, lahul-mulk wa lahul-hamd wa huwa 'ala kulli shay'in qadir (There is none worthy of worship except Allah with no partner or associate; His is the Dominion, to Him be all praise, and He is able to do all things). Spit to your left three times, seek refuge with Allah from the Shaitan, and do not say that again.'"
أَخْبَرَنَا عَبْدُ الْحَمِيدِ بْنُ مُحَمَّدٍ، قَالَ حَدَّثَنَا مَخْلَدٌ، قَالَ حَدَّثَنَا يُونُسُ بْنُ أَبِي إِسْحَاقَ، عَنْ أَبِيهِ، قَالَ حَدَّثَنِي مُصْعَبُ بْنُ سَعْدٍ، عَنْ أَبِيهِ، قَالَ حَلَفْتُ بِاللاَّتِ وَالْعُزَّى فَقَالَ لِي أَصْحَابِي بِئْسَ مَا قُلْتَ قُلْتَ هُجْرًا . فَأَتَيْتُ رَسُولَ اللَّهِ صلى الله عليه وسلم فَذَكَرْتُ ذَلِكَ لَهُ فَقَالَ " قُلْ لاَ إِلَهَ إِلاَّ اللَّهُ وَحْدَهُ لاَ شَرِيكَ لَهُ لَهُ الْمُلْكُ وَلَهُ الْحَمْدُ وَهُوَ عَلَى كُلِّ شَىْءٍ قَدِيرٌ وَانْفُثْ عَنْ يَسَارِكَ ثَلاَثًا وَتَعَوَّذْ بِاللَّهِ مِنَ الشَّيْطَانِ ثُمَّ لاَ تَعُدْ " .
also referenced under: Hadith 3777 (Reference) & Book 35, Hadith 17 (In-Book)