Sigmund Freud said this quote

The child is brought up to know its social duties by means of a system of love-rewards and punishments, and in this way it is taught that its security in life depends on its parents (and, subsequently, other people) loving it and being able to believe in its love for them.