My question is,
In the history of mathematics, what are some non-rigorous approaches that lead to a correct result?
One example I can think of is Euler’s initial approach to solve the Basel problem.
His argument is
Because $n\pi$ is a root of $\sin x$, so $$\sin x=x(1+\frac{x}\pi)(1-\frac{x}{\pi})(1+\frac{x}{2\pi})(1-\frac{x}{2\pi})\cdots$$
Equating the Taylor series and the product series of $\frac{\sin x}x$ and compare the coefficients of $x^2$, one obtains $$-\frac1{\pi^2}\sum^\infty_{n=0}\frac1{n^2}=-\frac16$$ which solves the problem.
Obviously, the expansion of function in terms of its roots is not always correct, and requires the justification of Weierstrass factorization theorem, which was not available at the time.
What are some other (famous) examples?