Introductory Statistics 2e, Chapter 12, p. 623
The least-squares regression line is the line that makes the sum of squared residuals (SSE) as small as possible. The correlation coefficient measures the strength and direction of the linear relationship.
Textbook: OpenStax Introductory Statistics 2e (CC BY-NC-SA 4.0). Access for free at openstax.org.