Shaykh Safi ur-Rahman Mubarakpuri
Takhrij:
«أخرجه مسلم، السلام، باب تحريم الخلوة بالأجنبية والدخول عليها، حديث:2171.»©Explanation:
According to this hadith, it is forbidden to be alone in seclusion with a non-mahram woman.
There is no harm in being with a mahram.
A mahram is one with whom marriage is not permissible or valid under any circumstance or at any time.
Source: Bulugh al-Maram: Commentary by Safiur Rahman Mubarakpuri, Page: 960