Sunan an-Nasa'i, Book 35, Hadith 10 (Nasa'i 3788)

It was narrated that Thabit bin Ad-Dahhak said:

"The Messenger of Allah said: 'Whoever swears by a religion other than Islam, telling a lie, will be as he said.'" In his narration, Qutaibah said: "Intentionally." Yazid said: "Telling a lie will be as he said, and whoever kills himself with something. Allah will punish him with it in the Fire of Hell."