Hazrat Amr bin Aas (may Allah be pleased with him) once sent one of his slaves to Hazrat Ali (may Allah be pleased with him) to seek permission to meet his wife, Hazrat Asma bint Umais (may Allah be pleased with her). Hazrat Ali (may Allah be pleased with him) granted permission, and when he had finished his business, the slave asked Hazrat Amr (may Allah be pleased with him) the reason for seeking permission. So Hazrat Amr (may Allah be pleased with him) said that the Prophet (peace and blessings of Allah be upon him) forbade us from going to women without the permission of their husbands.
Hadith Referenceمسند احمد / مسند الشاميين / 17805
Hadith Gradingحکم دارالسلام:حديث صحيح بطرقه وشواهده ، مولي عمرو بن العاص لم يبين