Is Masturbation Ok?

So I have always believed that you shouldn’t have sex until after marriage. I have a purity ring and have taken a pledge to not have sex until after marriage. However, I’ve always wondered about masturbation. I don’t necessarily WANT to masturbate now. I just have never known. I mentioned this to my friend and we tried to find answers in the Bible but couldn’t find anything. So, I thought I’d bring it up to this group. Please let me know what you think/believe.