Masturbation, known as "the secret habit", or any habit of this sort is prohibited. As far as we know, there is no evidence that a masturbator is cursed. In addition, the Hadith you are referring to is classified as Da`if (weak). (Part No. 22; Page No. 59) May Allah grant us success. May peace and blessings be upon our Prophet Muhammad, his family, and Companions.