If you had a wet dream the prayer is not valid and you must perform ghusul. You should have interrupted your prayer immediately.

When I was praying thuhr, after two rakah I realized I had sexual impurity because I had wet my pant at night. I was confused and I just went on and prayed. Is my prayer valid or I had to go out of the salah and take shower?

Purity |