As long as you are pure and the place on which you do sujud is pure, and you don’t know that the ground is najes and that it made you najes, the Law of Purity applies and the prayer would be valid there.
If you know the ground is najes and the ground is moist or your body is moist, then you will become najes and your prayer will be invalid. But if you don’t know that the ground is najes, you may consider it pure and you can pray.