Question
Is it obligatory to repeat a prayer that was offered in a state of impurity or not?
Answer
الحمد لله، والصلاة والسلام علىٰ رسول الله، أما بعد!
If a person is afflicted with an illness and does not know when the impurity touched him, then in such a case his prayer is to be considered valid, and it is not obligatory to repeat (pray again) that prayer. However, for the future, full care should be taken so that prayer is not offered in such a state.
ھذا ما عندي والله أعلم بالصواب