God conversed with Moses and commanded Moses to give that law to His people. I don't believe Paul is mistaken when he explains what was accomplished on the cross in Hebrews 9. My study Bible has a note on the sacrifices from Cain and Abel at Gen. 4:4-5:
Gen. 4:4 note: Type of Christ the Lamb of...