Jesus is talking to a group of people about what they as individuals should and should not do. The "you" in "you have heard" is plural. (See: [[rc://en/ta/man/jit/figs-you]])
This can be stated in active form. See how you translated this in [Matthew 5:27](../05/27.md). Alternate translation: "that God God said" or "that Moses said" (See: [[rc://en/ta/man/jit/figs-activepassive]])