The World Federation One Stop Fiqh

Ritual 178

It is not a requirement for the validity of the ihram that there should be a determination to refrain from all the prohibitions from the moment it is worn till its removal.

However, if the pilgrim was intent, from the outset of Umrat-ul-Mufradah, a on having sex with his wife before completing sa’y, or he wavered, his ihram will, evidently, be void. The same applies to masturbation, as a matter of precaution (alal ahwat). Yet, if, from the outset of wearing ihram , he was intent on refraining from such acts, but after wearing ihram, he changed his intention to committing either of them, the ihram is not vitiated.