Hadith 17:484
Hafs narrated to us, from ‘Amr, from al-Hasan, that he used to not see any harm in a man greeting a woman, unless he enters upon her in her house, then he greets her.
حدثنا حفص عن عمرو عن الحسن أنه كان لا يرى أن يسلم الرجل على المرأة إلا أن يدخل عليها في بيتها فيسلم عليها