If you see someone taking an oath in your dream, it indicates that this person may betray you. Taking an oath signifies a serious commitment, which can sometimes serve as a warning about others. This type of dream cautions you to be more aware of the intentions of some people around you.
From Imam Muhammad Ibn Seerin's Dictionary of Dreams According to Islamic Inner Traditions â entry "Adjuring" (page 3).
If one sees himself swearing in God's Name before someone in a dream, it means that the other person will deceive him. To swear solemnly by the stars, the celestial signs or by any physical sign in a dream means arrogance, deception, humiliation, hypocrisy or heedlessness. If one is truthful in his oath in a dream it means that he will win his argument, speak the truth or perform an act that pleases God Almighty. To swear by God in a dream when failure to perform requires atonement means following the truth and emulating the leading example of God's Prophet, upon whom be peace.
Note: Islamic dream interpretation depends on the dreamer's circumstances and state. This is a general guide drawn directly from the source book.