WASHINGTON — Bernie Sanders’ position on gun legislation won praise from the NRA Monday — which Hillary Clinton’s campaign pounced on as proof he’s on the wrong side of the issue.

“Sen. Sanders was spot-on in his comments about gun manufacturer liability,” the National Rifle Association tweeted.

The powerful pro-gun lobby shared Sanders’ quote from the Democratic debate Sunday: “What you’re really talking about is ending gun manufacturing in America. I don’t agree with that.”

Sanders butted heads with Clinton at the testy standoff in Flint, Mich., arguing gun stores and manufacturers should not be liable if people buy guns legally and then “go out and start killing people.”

Clinton’s team delighted in Sanders’ newfound support from the gun lobby.

Clinton aide Josh Schwerin tweeted, “If the NRA endorses your answer on opposing common sense gun laws you’re doing something wrong.”

Sanders was also playing defense on his vote against releasing bailout funds that rescued Detroit’s automakers.

Campaigning in Dearborn — Ford headquarters — Sanders said Clinton’s accusation that he didn’t support the vital auto-rescue package was “absolutely untrue.”

Clinton during the debate likened Sanders’ 2009 vote opposing releasing $350 billion of Wall Street bailout funds, which financed the auto bailout, as a vote against Detroit’s auto makers.

Opposition to the auto bailout has been a death knell for politicians in Michigan, most recently Mitt Romney.

Sanders failed to explain that he voted in favor of the 2008 auto-industry bailout, but rejected the 2009 funds because he opposed the overall Wall Street bailout package.

He tried to clarify his point Monday, but experts say the damage is done.

“If it hasn’t hurt him yet, it certainly will in the next 24 hours,” said Joe DiSano, a Michigan Democratic strategist.