John Bowlby said this quote

for to have a deep attachment for a person (or a place or thing) is to have taken them as the terminating object of our instinctual responses.Separation anxiety. International Journal of Psycho-Analysts, XLI, 1-25 (1959(