Narrated `Abdullah:The Prophet (ﷺ) said, "Whoever has to take an oath should swear by Allah or remain silent." (i.e. He should not swear by other than Allah)
Hadith No. 2679
Sahih al Bukhari