Musab bin Saad bin Abu Waqqas reported,

I swore by al-Lat and al-Uzza, and my companions said to me, "What an evil thing you have said. You have spoken something offensive."So I went to the Messenger of Allah ﷺ and mentioned that to him. He said, "Say, 'There is no god but Allah alone, with no partner. To Him belongs the dominion and to Him belongs all praise, and He has power over all things.' Then spit lightly to your left three times and seek refuge in Allah from Satan, and do not return to it."

Nasai 3808

Sahih

أخبرنا عبد الحميد بن محمد قال حدثنا مخلد قال حدثنا يونس بن أبي إسحق عن أبيه قال

حدثني مصعب بن سعد عن أبيه قال

حلفت باللات والعزى فقال لي أصحابي بئس ما قلت قلت هجرا فأتيت رسول الله ﷺ فذكرت ذلك له فقال قل لا إله إلا الله وحده لا شريك له له الملك وله الحمد وهو على كل شيء قدير وانفث عن يسارك ثلاثا وتعوذ بالله من الشيطان ثم لا تعد

النسائي 3808صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Nasai Sughra
Book
Oaths and vows
Chapter
Swearing by Lat and Uzza
Numbering
Darussalam 3808
Nasai 3808