Many people struggle with this. You are not alone. Although the Bible does not specifically mention the word masturbation, it does say, “Deaden, therefore, your body members that are upon the earth as respects fornication, uncleanness, [and improper] sexual appetite.”—Colossians 3:5. God requires that sexual relations be with those who are married (1Corinthians 6:9,10). So If we are to wait until marriage, then masturbating would not be a way to “deaden our body members” until that time.
God can give “the power beyond what is normal” if a person sincerely wants to break this habit.—2 Corinthians 4:7; Philippians 4:13.