All perfect praise be to Allah, The Lord of the Worlds. I testify that there is none worthy of worship except Allah, and that Muhammad
is His Slave and Messenger.
A person in the state of iḥrām for ḥajj or ʿumrah is prohibited from deliberately applying perfume to his body, or from touching something perfumed in such a manner that its substance transfers to the one who touches it. There is no distinction between the two cases, as the fundamental ruling is that perfume is prohibited in all cases for a person in the state of iḥrām.
Accordingly, if a person in iḥrām for ḥajj or ʿumrah deliberately touches perfume applied to the Sacred Kaʿbah, and that perfume is moist, he is required to offer an expiation (fidyah). It is stated in al-Umm by Imām al-Shāfiʿī:
“If he touches the khalūq (perfume) of the Kaʿbah while it is dry, then there is no expiation upon him, because it does not transfer nor does its fragrance remain on his body. However, if he touches the khalūq while it is moist, then he must offer an expiation.” [End quote.]
The required expiation in this case is one of the following: fasting for three days, feeding six needy persons—each receiving half a ṣāʿ(1088 grams) of the staple food of the land—or slaughtering a sheep.
Allah knows best.