Wa 'alaykkum salaam wa rahmatullaah. I think this is the hadeeth your referring to, it talks about women wearing perfume though.
It was narrated from Abu Moosa (may Allaah be pleased with him) that the Prophet (peace and blessings of Allaah 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 Dawood (4173) and al-Tirmidhi (2786); classed as saheeh by Ibn Daqeeq al-Eid in al-Iqtiraah (126) and by Shaykh al-Albaani in Saheeh al-Tirmidhi.