Abu Musa (may Allah be pleased with him) narrated that the Prophet (peace and blessings of Allah be upon him) said: “If a woman puts on perfume and passes by people so that they can smell her fragrance, then she is such and such,” and he spoke sternly - meaning an adulteress. (Narrated by Abu Dawud (4173) and al-Tirmidhi (2786); classed as sahih by Ibn Daqiq al-’Eid in al-Iqtirah (126) and by Shaykh al-Albani in Sahih al-Tirmidhi)
Al-Manawi said in Fayd al-Qadir (1/355):
“She is an adulteress means: because of that she is exposed to zina, and implementing the means that lead to it and calling those who seek it. Hence she is called an adulteress in a metaphorical sense, because desire may prevail and real zina may take place. Her passing by men is likened to her sitting in their path so that they pass by her.”
Woman wearing perfume thinking that she will pass by a group in which there will be men
If she puts on perfume and goes out, and thinks it most likely that she will pass by a group in which there will be men who will smell her perfume and fragrance, this is also haram, even if she does not intend to tempt men and that is not her aim, because this action is a fitnah (temptation) in and of itself. There is also an indication in Shari`ah that it is haram and not allowed.
Allah says (interpretation of the meaning):
“And tell the believing women to lower their gaze (from looking at forbidden things), and protect their private parts (from illegal sexual acts) and not to show off their adornment except only that which is apparent (like both eyes for necessity to see the way, or outer palms of hands or one eye or dress like veil, gloves, headcover, apron), and to draw their veils all over Juyubihinna (i.e. their bodies, faces, necks and bosoms) and not to reveal their adornment except to their husbands, or their fathers, or their husband’s fathers, or their sons, or their husband’s sons, or their brothers or their brother’s sons, or their sister’s sons, or their (Muslim) women (i.e. their sisters in Islâm), or the (female) slaves whom their right hands possess, or old male servants who lack vigour, or small children who have no sense of feminine sex. And let them not stamp their feet so as to reveal what they hide of their adornment. And all of you beg Allah to forgive you all, O believers, that you may be successful” [Al-Nur 24:31]