does one have to repeat prayers if madhiy comes out in the middle of his prayer and he is fully aware of it?I have this problem of frequent urethral discharge.I came across a hadith in bukhari in which Ali(ra) is asked to perform wudu after washing his private parts when he questions about this.In your site,I came across a fatwa in which the person is compared to a woman who has menstrual bleeding and so the person can perform wudu at the starting of prayer times and continue to pray irrespective of the urethral discharge emitted.When the messenger asks Ali(ra) to do the wudu again,doesnt it mean that the wudu is invalidated.There is no prayer without wudu.So logically,even the prayer is invalidated.Please clarify what one must do in case urethral dischrge takes place when one is offering salah.should he perform wudu and offer salah again?

Praise
be to Allah.

Merely thinking that something has happened that invalidates wudoo’, or
not being certain of it, is not regarded as invalidating the state of
purity and the prayer. Rather that ruling only comes into effect if the
accountable individual is certain or thinks it most likely that something
has come out of him, because the Prophet (blessings and peace of Allah be
upon him) said concerning a man who kept thinking that he had invalidated
his wudoo’: “Do not stop (praying) unless you hear a sound or notice a
smell.” Narrated by Muslim. 

Secondly: 

If
a person constantly experiences something that invalidates his wudoo’, and
it is ongoing and does not stop, then he comes under the same ruling as a
woman who suffers istihaadah (ongoing non-menstrual bleeding): she may offer
whatever prayers she wants so long as the time for prayer has not ended,
even if something comes out of her during the prayer, because she cannot
help it., And if she waits until the end of the time or until the time is
almost over, that will not help her at all. Allah, may He be exalted, says
(interpretation of the meaning): So
keep your duty to Allah and fear Him as much as you can”
[at-Taghaabun 64:16]

But if the matter that invalidates his wudoo’ is intermittent and does not
happen all the time – rather it happens sometimes and stops sometimes – then
he has to pray in a state of complete purity, even if that means waiting
until near the end of the time for the prayer. He has to wait until that
issue stops. 

Thus it becomes clear that there is a difference between the case of the
woman who suffered istihaadah and that of ‘Ali (may Allah be pleased with
him), because that woman came and complained that the bleeding in her case
was continuous, hence the hadith tells us that she said: “I am a woman who
suffers ongoing non-menstrual bleeding and I never become pure, so should I
stop praying?” (Agreed upon). 

But in the case of ‘Ali (may Allah be pleased with him), the issue that
invalidated his wudoo’ was not continuous, rather it was intermittent, based
on the fact that he (may Allah be pleased with him) said: “I was a man who
emitted a great deal of urethral discharge” (agreed upon) – i.e., he emitted
a great deal of madhiy. This does not mean that he constantly emitted madhiy,
unlike the woman who suffered istihaadah, as she said: “I never become
pure”, i.e., she never stopped bleeding. 

To
sum up: with regard to the man who emits madhiy, if his situation is what is
usually the case, that he emits it sometimes, then it stops, then he should
go about purifying himself like anyone else. Whenever he emits madhiy, he
should wash his penis and testicles, and wash off anything that has got on
to his clothes, then do wudoo’. If anything comes out of him whilst he is
praying, his wudoo’ and prayer become invalid. 

But if he is incontinent in this sense, as it were, and he emits madhiy all
the time, then he should approach the matter of purifying himself like those
who have excuses. 

For more information, please see the answers to questions no.
22843 and 126293

And Allah knows best.