Suppose $d$ is the gcd of $a$ and $b$. We wish to show that $c=\frac{ab}{d}$ is the least common multiple.
First, note that $d\vert b$, so $\frac{b}{d}$ is an integer, and so $c = a\frac{b}{d}$ is an integer multiple of $a$. Thus, $a\vert c$. Similarly, $b\vert c$.
Now suppose $a\vert c'$ and $b\vert c'$ for some $c'$. We want to show that $c\vert c'$. Write $c'=ma=nb$. Further, write $a=pd, b=qd$. Then $c'=mpd=nqd$. Thus, $mp=nq$. Now, $q$ and $p$ share no common factors; if they did, $d$ wouldn't be the greatest common divisor. Thus, it follows that $q\vert m$, to $m = rq$. Then we have
$$\frac{c'}{c} = \frac{mpd}{ab/d} = \frac{mpd^2}{pd\cdot qd} = \frac{m}{q} = r$$
And so $c\vert c'$. Thus, $c$ is the least common multiple of $a$ and $b$.