Sahl bin Abi Hathmah says that once I saw Sayyiduna Muhammad bin Maslamah looking at a woman. I said to him, "You are a companion of the Prophet (peace be upon him), yet you look at a non-mahram woman?" He replied, "I heard the Prophet (peace be upon him) say: If Allah puts the thought of sending a marriage proposal to a woman in a person's heart, then there is no harm in looking at her."