The line from Shakespeare’s Hamlet (Act 1, Scene 3), spoken by Polonius to his son Laertes, is:
"What thou wouldst highly, that wouldst thou holily"
Meaning: What you desire greatly, you would pursue righteously. Polonius advises that noble ambitions should be pursued through virtuous means.