Contradiction with Exodus 20:14
Exodus 20:14 states "Thou shalt not commit adultery," which is consistent with Matthew 5:27, and does not provide a contradiction.
Exodus 20:14: Thou shalt not commit adultery.
Contradiction with Matthew 19:9
This verse allows for divorce on the grounds of adultery, which complements the prohibition against adultery in Matthew 5:27 rather than contradicting it.
Matthew 19:9: And I say unto you, Whosoever shall put away his wife, except [it be] for fornication, and shall marry another, committeth adultery: and whoso marrieth her which is put away doth commit adultery.
Contradiction with Hebrews 13:4
This verse honors marriage and condemns adultery, maintaining consistency with Matthew 5:27.
Hebrews 13:4: Marriage [is] honourable in all, and the bed undefiled: but whoremongers and adulterers God will judge.