Premarital sex and god

I have sex before marriage with someone I’ve been with for 2 years. Someone told me the Bible said if you have sex before marriage god will not bless your marriage. Is this true? Will my marriage not last because I had sec or will I not have a happy marriage? If you have pre marital sex with the perosn you got married to pls tell me if this is true. Or if you know what the Bible says about it please comment