Answer
It is natural to have wet dreams. That is when a persons semen comes out while asleep.
A wet dream is different from masturbating which is when a person manually forces out his semen which is a major sin.
and Allah Ta’ala Knows Best
Mufti Ebrahim Desai