The Prophet (peace and blessings be upon him) said: "Whoever swears by other than Allah has committed shirk."