And part of that ability is that

Q 4: is it obligatory on a woman to perform Hajj if she is able to do so, but has no husband or other Mahram (spouse or permanently unmarriageable relative), and is it permissible for her to perform Hajj during her ‘iddah (woman’s prescribed waiting period after divorce or widowhood) after the death of her husband?

A: Hajj is not obligatory on a woman if she has no Mahram to travel with her. Moreover, it is not permissible for her to go to Hajj during ‘Iddah following husband’s death.May Allah grant us success. May peace and blessings be upon our Prophet Muhammad, his family, and Companions.