Jesus states: "Whatever you wish that others would do to you, do also to them" Matthew 7:12. He presents it as summarizing "the Law and the Prophets" Matthew 7:12.
In Matthew 7:12, Jesus gives a single, practical rule meant to guide everyday relationships: treat other people the way you want them to treat you. He presents this as a conclusion to what he has been teaching and as a summary statement. The point is not only about feelings but about actions: what you want done for you, do for them. This sentence comes near the end of the Sermon on the Mount (Matthew 5–7), where Jesus has been describing what life should look like for people who take God’s will seriously.
Matthew 7:12 presents a single, memorable rule for human relationships: the way a person wants to be treated becomes a guide for how to treat others. The wording is broad (“whatever”), and it moves from inner preference (“you desire”) to outward behavior (“do”).
A careful answer keeps the immediate passage, the book's argument, and the whole-Bible storyline together, so the question is answered in context instead of as a detached idea.
Start with Matthew 7:12, then read the surrounding section so the answer stays connected to the passage's flow.
12Therefore whatever you desire for men to do to you, you shall also do to them; for this is the law and the prophets.