In Islam, a Muslim woman is generally advised to cover her hair in front of non-mahram individuals, who are those to whom she is not closely related by blood or marriage. This practice is based on interpretations of modesty and privacy in accordance with Islamic teachings.
Typically, a Muslim woman's hair can be shown in front of her husband (mahram), close male relatives (such as father, brothers, and sons), and other Muslim women.
Attached below is a Mahram chart. A woman can only show her hair to her Mahrams. It is sinful for her to show her hair to Non-Mahrams.