then if we were to remove the male organ, we might wrong them; and if we were to remove the female organ, we would likewise wrong them, since it has not yet become clear whether they are male or female. The apparent ruling, then, is that they should remain as they are until Allah makes clear what He wills concerning them. If it is possible to examine them medically—for example, by examining the womb or otherwise—then this should be done.
If such a person has sexual desire but is presently prohibited by the Sacred Law from marrying, what should they do? We say to them: The Messenger ﷺ said: “O young people, whoever among you is able to marry should marry, for it is more effective in lowering the gaze and more protective of chastity. Whoever is unable to do so should fast.” (1) Thus, we say to them: Fast. If they say, “I am unable to fast,” they may be given medication that eases the matter for them. This is better than telling them to discharge semen through unlawful means.