For a detailed discussion of which kinds of oaths are permissable or acceptable from a Biblical perspective as well as in Islamic understanding, see these articles and discussions:
al-Baqarah 2:224; an-Nahl 16:92,94; al-Mu'minun 23:8; al-Fath 48:10; al-Ma`arij 70:32