Prohibition of Swearing in the name of anything besides Allah Riyad as-Salihin 1708
Arabic hadith text
وعن عبد الرحمن بن سَمُرَة، رضي الله عنه قال: قال رسول الله صلى الله عليه وسلم : "لا تحلفوا بالطواغي، ولا بآبائكم". ((رواه مسلم)).
"الطواغي": جمع طاغية، وهي الأصنام، ومنه الحديث: "هذه طاغية دوس": أي: صنمهم ومعبودهم، وروي في غير مسلم: "بالطواغيت" جمع طاغوت، وهو الشيطان والصنم.
Translation
'Abdur-Rahman bin Samurah (May Allah be pleased with him) said
The Messenger of Allah (ﷺ) said, "Swear neither by the name of Taghut (i.e., false deities, false leaders, etc.) nor by your fathers."[Muslim].