The golden rule in Matthew and Luke
The rule appears in two Gospels. In Matthew 7:12, Jesus says that whatever you wish others would do for you, you should do for them, and he says this sums up the Law and the Prophets. Luke 6:31 gives the same idea in shorter form: as you wish others would do to you, do so to them.
“Golden rule” is a popular name that came into use later. The Gospels do not use the phrase, but it is a convenient label for this teaching.
Where it sits in the Sermon
In Matthew, the rule closes a short block in the Sermon on the Mount. Just before it, Jesus warns against judging others while ignoring one’s own faults (Matthew 7:1-5), and he encourages people to ask God for good things (Matthew 7:7-11). The warning about judging raises a question many readers ask: does the Bible tell us not to judge at all? Jesus’ answer is more careful than a flat yes. He also tells listeners to recognize false prophets by their fruit (Matthew 7:15-20), so the passage does not rule out every kind of judgment.
In Luke, the rule comes in the Sermon on the Plain, right after Jesus’ call to love enemies and to do good to those who hate you (Luke 6:27-31). That setting matters for what the rule asks.
More than reciprocity
Read in context, the rule asks for more than fair exchange. In Luke, Jesus points out that even sinners love those who love them (Luke 6:32-34). He then tells his listeners to lend without expecting anything in return (Luke 6:35). The rule invites people to take the first step in doing good, not only to match what others do to them.
The rule is also stated in positive terms, “do,” rather than only as a prohibition against harm. That is one of the features that sets Jesus’ version apart from similar sayings in other traditions.
Similar sayings in other traditions
Versions of this principle appear in other traditions. In a story recorded in the Talmud (Shabbat 31a), Hillel the Elder gives a negative form: what is hateful to you, do not do to your neighbor. He adds that the rest is commentary. A saying in the Analects of Confucius, in one common translation, reads, “What you do not wish for yourself, do not do to others.”
These parallels show that the principle is widely shared. They do not show that the traditions mean exactly the same thing, and scholars debate how the sayings relate to one another.
Common misreadings
Some readings of the rule go astray. It does not mean treating people the way they treat you. Jesus starts from what you would want for yourself and asks you to do good, which is different from returning like for like.
It also does not replace the other teachings. Matthew calls it a summary of the Law and the Prophets, not a substitute for love for God and neighbor, love for enemies, or forgiveness. Nor does it promise how others will respond. It describes how to act, not what the outcome will be.
Using the golden rule in a sermon
The golden rule can anchor a message about everyday relationships, such as family, work, church, and online conversations. A preacher should be careful about the difference between what a listener would want and what is actually good for another person, since people’s needs are not always the same as our own wishes.
Because Luke places the rule right after the call to love enemies, a sermon that keeps that setting in view will be harder to reduce to a general call to be nice. Matthew’s and Luke’s versions both point toward active, costly kindness, even toward people a listener finds difficult.