PORTIA: How far that little candle throws his beams!
So shines a good deed in a naughty world.William Shakespeare (1564-1616) English dramatist and poet
Merchant of Venice, Act 5, sc. 1, l. 99ff (5.1.99-100) (1597)
(Source)
In some versions, "So shines a good deed in a weary world."
Sometimes misattributed to Roald Dahl; Willy Wonka uses the line toward the end of the movie Willy Wonka and the Chocolate Factory (1971).