Jesus is talking to a group of people about what they as individuals should and should not do. The "you" is plural in "you have heard" and "I say to you." The "you" in "whoever strikes you" and the understood "you" in "turn to him" are both singular, but in some languages they may need to be plural. (See: [[rc://en/ta/man/translate/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/translate/figs-activepassive]])