Sigmund Freud said this quote

Conscience is the internal perception of the rejection of a particular wish operating in us.