Legendre introduced least squares. Gauss had them ten years earlier but had not published, so some controversy ensued.
More information about:
Adrien-Marie Legendre
Carl Friedrich Gauss
Least Squares