“You are the salt of the earth, but if salt has lost its taste, how shall its saltiness be restored? It is no longer good for anything except to be thrown out and trampled under people’s feet. “You are the light of the world. A city set on a hill cannot be hidden. Nor do people light a lamp and put it under a basket, but on a stand, and it gives light to all in the house. In the same way, let your light shine before others, so that they may see your good works and give glory to your Father who is in heaven. (Matthew 5:13-16)
Doing your good works ‘before others’ so that they will glorify God seems to be a bit narcissistic on the surface. “Do your good deeds in such a way that people notice them and glorify God,” why should we be so sure that others notice us and attempt to parse out our motivations?”
The solution is in the metaphor: Nor do people light a lamp and hide it. The Christian is somebody who does good deeds in such a way that their left hand is unaware of what the right hand does. In other words, they so habituate themselves to be generous that they just behave generously. So back to ‘do your good deeds before others.’ A candle doesn’t know (as a human would) that it’s a candle. It just makes light. Jesus is saying something like this, “Do your good deeds so un-self-consciously that you even do them before others and like a candle that people light so that the room will be seen, your works will bring attention to the goodness of God.” It means something like that rather that, “go around doing things to attract attention to yourself and then claim to be glorifying God.” It means exactly the opposite of what Jesus criticizes in Matthew 6.