The bible mentions the first sexual relationship between adam and eve in this way.
"And Adam knew Eve his wife; and she conceived, and bare Cain, and said, I have gotten a man from the LORD.
Genesis 4:1 KJV"
He knew his wife. She was already his wife so it is not sex before marriage.