Sayyiduna Abdullah bin Umar (may Allah be pleased with them) says: I heard the Messenger (peace and blessings of Allah be upon him) say: "Swearing an oath by anyone other than Allah is shirk (associating partners with Allah)."