An idle mind is a devil’s workshop. Idle mind can do a lot more harm than you can ever think of . Idleness in a person becomes the root of all evils. Evil thoughts enter a person’s brain only when he remains idle. When the mind is filled with fruitful and good ideas, there is no room for evil.
Therefore to get rid of masturbation habit, socialize a lot. Socializing keeps your mind focused and diverted. Make it a point to socialize with family, friends.