Translation: “ Allah will not punish you for what is unintentional in your oaths, but He will punish you for your deliberate oaths; for its expiation feed ten poor persons on a scale of the average of what you feed your own families, or clothe them or manumit a slave. But whosoever cannot afford (that) then, he should fast for three days. That is the expiation for the oaths when you have sworn. And protect your oaths (do not swear much). Thus Allah make clear to you His verses that you may be grateful ** S: 5-89.
Translation: 967- " Ibn Omar narrated that the Messenger of Allah joined Omar ibn Al-Khattab in a group of people and heerd him swearing by his father. So Allah's Messenger called them, saying, " Verily! Allah forbids you to swear by your fathers. If one has to take an oath, he should swear by Allah or otherwise he should keep silent. " (At-Termizi).
Translation: Thus, we should be on guard. We should not swear by a creature. Swearing is only by Allah.
Now, let us read what Imam Al-Nawawi compiled in the same concern.]
Translation: 968. Narrated Sa'ad ibn Obayda; ' Ibn Omar heard a man saying: ' No. By the Lord of Ka'aba. ' Ibn Omar said; ' Swearing should not be by any other besides Allah for I have heard the Messenger of Allah ﷺ saying: " He that swore by anything besides Allah has committed disbelief or has committed polytheism. " (At-Termizi).
Translation: Abu-Issa said; " This Hadith is Hasan and the scholars of Hadith interpreted the words he has committed disbelief or has committed polytheism) as a form of threat basing their opinion on the Hadith narrated by Ibn Omar that says: " Indeed Allah forbids you to swear by your fathers " and the Hadith narrated by Abu-Huraira that the Prophet said: (He that said in his oath; ' By Allat and Al-Ozza let him say: " None has the right to be worshipped except Allah. " This is similar to what the Prophet ﷺ said (Indeed, showing off is a form of polytheism). The people of knowledge interpreted the words (let him not ascribe partners with Allah mean do not show off. The verse says:
Say: " I am but a man like yourselves, (but) the inspiration has come to me, that your God is One God. Whoever aspires to meet his Lord, let him work righteousness, and, in the worship of his Lord, admit no one as partner *** S: 18-110