I wouldn't know about Sunni hadiths, but in Shia hadiths, masturbation is forbidden.
Also, I think many Sunni Scholars forbid it on the basis of a verse that goes on the line that the righteous believers private parts are protected except from their wives and whom their right hands possess.
Also, I think many Sunni Scholars forbid it on the basis of a verse that goes on the line that the righteous believers private parts are protected except from their wives and whom their right hands possess.