After.
They drug tested him and told him he needed to go to a rehab program.
Jeff said no because he knew he wasn't on drugs and asked for his test results. They released him.
When the test came back, it was negative. So WWE tried to make up for it by giving him his job back and offering him a spot in the WWE Hall of Fame, but it would just be him by himself, not Matt because he's signed to AEW.
Jeff was like "nah", he wanted to go in there with his brother, it's Hardy Boys or nothing, and turned down everything.
All he wanted was his test results back so he can clear his name, and WWE withheld his test results for weeks because they didn't want the truth to come out - that they prematurely fired him and the reason he walked out of that match was because he was just tired of WWE's bullshit.