go for nothing

[go for nothing] also {formal} [go for naught] {v. phr.} To countfor nothing; be useless; be wasted.

What the teacher said went fornothing because the pupils did not pay attention.

I hope that allyour good work doesn't go for naught.

Compare: IN VAIN.