The Prophet (peace and blessings be upon him) said: "Whoever has to swear an oath should swear only by Allah."