Hadithcore
Riyad as-Salihin, 1710

Buraidah (May Allah be pleased with him) reported:

The Messenger of Allah (ﷺ) said, "If anyone swears that in such and such case he will be free from Islam and afterwards he turns out to be a liar, he will be as he has sworn; but if he is speaking the truth, he will not revert safely to Islam." <b>[Abu Dawud]</b>.

وعنه قال‏:‏ قال رسول الله صلى الله عليه وسلم ‏:‏ ‏

‏من حلف فقال‏:‏ إني بريء من الإسلام، فإن كان كاذبًا، فهو كما قال، وإن كان صادقًا، فلن يرجع إلى الإسلام سالمًا‏

‏‏.‏ ‏(‏‏(‏رواه أبو داود‏)‏‏)‏

References1 variant
In-Book Reference
Book 17, Hadith 200
Sharh · explanationclick to expand
<b>Guidance from the Hadiths:</b><br> 1) It is prohibited to swear by other than Allah Almighty, which is an act of polytheism.<br> 2) A person should be keen not to swear by any creature, even a great one, or to ask someone to take such an oath that throws him into polytheism.<br> 3) The prohibition of swearing by other than Allah Almighty demonstrates the exclusive right of the Almighty Lord to be worshiped alone. No creature, no matter how great he may be, should be made equal to Allah by way of swearing.<br> Note:<br> As part of swearing by Allah Almighty, it is permissible to swear by the Qur’an or the Mus-haf (bound copy of the Qur’an), for it is the speech of Allah and one of His attributes. In fact, the swearer does not mean the papers and the ink, which are both created.<br> As for swearing by the trust, as some people say: “the trust, the trust”, it is a form of swearing on which we have cited the Hadith: “He who swears by the trust is not one of us.” Therefore, a person should try to correct his speech and regulate it in accordance with the Shariah and enjoin others to do the same - in fulfillment of monotheism, which is Allah’s right upon His servants.
Related hadiths3
Compare isnād across 3 related chains →