The view that women are not permitted to leave their homes at all due to the general indication of the verse in which Allah The Exalted Says (what means): {And abide in your houses.} [Quran 33: 33], is not adducible because this part of the verse is followed by another part which reads: {And do not display yourselves as [was] the display of the former times of ignorance } which means forbidding the display of adornment when going out.
This verse implies a command that women are required to abide in their houses. Although the verse addresses the wives of the Prophet, , other women are implicitly included, and this is applicable if there is no other evidence to specify all women. Rather, the Sharee'ah (Islamic legislation) is replete with commands for women to abide in their houses and not to go out unless there is a necessity.
This command does not mean that women are required to abide in their houses and never go out. Rather, it is a gentle hint that staying in the house should be the basis of their lives and going out should be the exception where they neither stay for a long time nor take up residence outside for a prolonged period. Rather, this should be according to one's need and necessity.
It was transmitted that the Mothers of the Believers as well as other female Companions, may Allah be pleased with them, used to go out in order to fulfill their needs and participate in battles. The Messenger of Allah, , used to take Umm Sulaym, may Allah be pleased with her, with him, as well as women from the Ansaar (Helpers) during battles in order to bring water for the soldiers and treat the wounded.
This indicates that it is permissible for women to participate in battle and benefit the soldiers by providing water and treating their Mahram (non-marriageable) men, and others as well when there is no touching of the skin beyond the injured spot.
Here is the story of Umm ‘Ammaarah, may Allah be pleased with her, during the Battle of Uhud. She said, “I went out at the beginning of the day and with me was a vessel of water. I reached the Messenger of Allah while he was among his Companions and the Muslims were victorious. When the Muslims were defeated, I approached the Messenger of Allah and started to fight and defend the Messenger of Allah using the sword and the bow until I was finally wounded.”
It was narrated on the authority of ‘Umar, may Allah be pleased with him, that he said, "I heard the Messenger of Allah saying: 'Whenever I turned right or left, I saw her (Umm ‘Ammaarah, may Allah be pleased with her) fighting and defending me." [Ibn Hajar in Fath Al-Baari]
Umm Sinaan Al-Aslamiyyah, may Allah be pleased with her, asked permission from the Prophet, , to take part in the Battle of Khaybar by providing water and treating the wounded. The Messenger of Allah, , responded: "I have given permission to women from your people and from others as well. You can go with Umm Salamah." [Khateeb]
Also, during the course of the Battle of Khaybar, a woman from Banu Ghifaar said, "I came to the Messenger of Allah along with a group of women from Banu Ghifaar and we said, 'O Messenger of Allah, we want to go out along with you (for the battle) in order to treat the wounded and help the Muslims as much as we can.' He replied: 'Go with the blessing of Allah.' So we went along with him." [Ahmad, Baihaqi]
Even a woman who is observing 'Iddah (post-marriage waiting period) may go out and do errands during the day, whether she is divorced or widowed, because of the Hadeeth narrated by Jaabir, may Allah be pleased with him, who said, "My maternal aunt was thrice divorced and she went out to harvest her palm trees. A man met her and told her not to do that. She mentioned that to the Prophet and he said: 'Go out and harvest your palm trees; perhaps you will give some of it in charity or do some good.'" [An-Nasaa'i, Abu Daawood]