The likeness we have to God precedes and causes the likeness we have to our neighbor: because from the very fact that we share along with our neighbor in something received from God, we become like to our neighbor. Hence by reason of this likeness we ought to love God more than we love our neighbor.
Summa Theologiae 2-2.26.2 ad 2.