2 Samuel 11:5

And the woman conceived, and sent and told David, and said, I am with child.

Cross-reference

Deuteronomy 22:22 prescribes death for adultery — the very sin David committed with Bathsheba.

Exodus 20:14 is the commandment against adultery, which David directly transgresses here.