If a person realised that he prayed while there was najasa on his body. Is wajib for him to pray again or just washing to the next salat is enough?

If it is on the body then prayer will have to be repeated