Whoever swears by other than Allah has disbelieved or associated partners with Allah.” [At-Tirmidhi]"
"من حلف بغير الله قد كفر أو أشرك" (الترمذي)