Sunan an-Nasa'i, Book 35, Hadith 11 (Nasa'i 3790)

Thabit bin Ad-Dahhak narrated that the Messenger of Allah said:

"Whoever swears by a religion other than Islam, telling a lie, will be as he said, and whoever kills himself with something will be punished with it in the Hereafter."