In conclusion, according to the Quran, if safety is available, a woman can make a journey for her duty, to travel, or to worship. She can do it alone, with friends or in a group. There isn’t any prohibition.
It is one of Allah's commands to men that they have to treat their spouse well if they are getting divorced or are divorced. Who mistreats women has exceeded one of Allah's borders.