A man accused of a 20-year-old murder was motivated by jealousy after having a relationship with his alleged victim’s estranged wife, police say.