Stuart Fleetwood's dramatic late equaliser against Bradford secured League Two football for Hereford next season.
Fleetwood rifled in a a superb free-kick after Waide Fairhurst was fouled just outside the area.
Bradford looked set for the win when Jake Speight converted a penalty after James Hanson was fouled by Stefan Stam in the area.
But Fleetwood had the last say with a goal that means Hereford are safe.
Hereford United manager Jamie Pitman told BBC Hereford & Worcester:
"Personally for me it has been a really tough season as it has been stressful, painful and a rollercoaster of emotions.
"But it is the best job in the world and that is what you have do deal with.
"I have got to thank my players for that, as well as [coach] Dave Kevan and Houltie [assistant manager Russell Hoult] as he has kept me going."