No he because of carelessness prayed

If he did not know or that he had najasaat on his clothing than he would not need to repeat the prayers