Answer
Wa `alaykum As-Salamu waRahmatullahi wa Barakatuh.
In the Name of Allah, Most Gracious, Most Merciful.
All praise and thanks are due to Allah, and peace and blessings be upon His Messenger.
In this fatwa:
If the nature of your job is halal, then you may keep the job while abiding by the Islamic teachings with regard to your relation with these female colleagues. Meanwhile, you should also try to find a better job environment.
Answering your question, Dr. Muhammad Salama, PhD, Islamic Studies in English, Associate Professor at the Faculty of Islamic Sciences al-Madinah International University (Mediu), states:
Islam and safeguarding society
Islam aims at safeguarding the society from the evil consequences of nakedness and unnecessary mingling between the two sexes. Allah (Exalted is He) commanded the wives of the Messenger of Allah (peace be upon him), who are the best and most virtuous women:
{And abide in your houses and do not display yourselves as [was] the display of the former times of ignorance. And establish prayer and give zakah and obey Allah and His Messenger. Allah intends only to remove from you the impurity [of sin], O people of the [Prophet’s] household, and to purify you with [extensive] purification.} (Al-Azhab 33:33)
The command extends a fortiori to other Muslim women.
Islam intends to build a community based on chastity, modesty and bashfulness. Therefore, Islamic teachings have laid restrictions on the interaction between marriageable men and women to block all ways to evil practices.
Islam takes prohibitive measures and does not wait for evil to take place. Both men and women have been commanded to lower their gaze and not to look at members of the opposite sex except for a legitimate reason.
Unnecessary mingling between men and women
Unnecessary mingling between marriageable men and women is not permissible and any contact has to be within the Islamic guidelines in this regard. All evil practices between men and women are results of neglecting such teachings.
In your case, brother, if the nature of your job is halal, then you may keep the job while abiding by the Islamic teachings with regard to your relation with these female colleagues. Meanwhile, you should also try to find a better job environment. You need to pray to Allah and seek His help to enable you overcome the trials of this world and grant you a way out of this situation.
Allah Almighty knows best.