From Feng Menglong's Ming-dynasty 《
警世通言》 volume 24 — the Su San ('Yu Tangchun') story. The county magistrate accuses the poisoner Pi Shi of
怀恨在心 toward her husband for favoring a new mistress, leading to murder. The phrase captured the quiet simmering resentment so well that it became the standard term.