If someone is certain that his body or clothing is not impure and after prayers he realises it was impure, his prayers are valid.