I’m Religious, But I Can’t Stop Masturbating

I am a good Muslim. But I’m ashamed. I feel guilty. I ask Allah for forgiveness. I try to avoid masturbation. However, I keep repeating it!