It seems you have in mind a proof that uses prime factorizations, i.e. the prime factors of $\,a\,$ cannot occur in $\,b\:$ so they must occur in $\,c.\,$ You should write out this argument very carefully, so that it is clear how it depends crucially on the existence and uniqueness of prime factorizations, i.e. FTA = Fundamental Theorem of Arithmetic, i.e. $\Bbb Z$ is a UFD = Unique Factorization Domain. This and related methods of proof are presented in this answer.
Besides the proof by FTA/UFD one can give more general proofs, e.g. using gcd laws (most notably distributive). Below is one, contrasted with its Bezout special case.
$$\begin{eqnarray} a\mid ac,bc\, &\Rightarrow&\, a\mid (ac,\ \ \ \ bc)\stackrel{\color{#c00}{\rm DL}} = \ (a,\ b)\ c\ = c\quad\text{by the gcd Distributive Law }\color{#c00}{\rm (DL)} \\
a\mid ac,bc\, &\Rightarrow&\, a\mid uac\!+\!vbc = (\color{#0a0}{ua\!+\!vb})c\stackrel{\rm\color{#c00}{B\,I}} = c\quad\text{by Bezout's Identity }\color{#c00}{\rm (B\,I)} \end{eqnarray}$$
since, by Bezout, $\,\exists\,u,v\in\Bbb Z\,$ such that $\,\color{#0a0}{ua+vb} = (a,b)\,\ (= 1\,$ by hypothesis). Notice that the Bezout proof is a special case of the proof using the distributive law. Essentially it replaces the gcd in the prior proof by its linear (Bezout) representation, which has the effect of trading off the distributive law for gcds with the distributive law for integers. However, this comes at a cost of loss of generality. The former proof works more generally in domains having gcds that are not necessarily of such linear (Bezout) form, e.g. $\,\Bbb Q[x,y].\,$ The first proof also works more generally in gcd domains where prime factorizations needn't exist, e.g. the ring of all algebraic integers.
See this answer for a few proofs of the fundamental gcd distributive law, and see this answer, which shows how the above gcd/Bezout proof extends analogously to ideals.
Remark $ $ This form of Euclid's Lemma can fail if unique factorization fails, e.g. let $\,R\subset \Bbb Q[x]\,$ be those polynomials whose coefficient of $\,x\,$ is $\,0.\,$ So $\,x\not\in R.\,$ One easily checks $\,R\,$ is closed under all ring operations, so $\,R\,$ is a subring of $\,\Bbb Q[x].\,$ Here $\,(x^2)^3 = (x^3)^2\,$ is a nonunique factorization into irreducibles $\,x^2,x^3,\,$ which yields a failure of the above form of Euclid's Lemma, namely $\ (x^2,\color{#C00}{x^3}) = 1,\ \ {x^2}\mid \color{#c00}{x^3}\color{#0a0}{ x^3},\ $ but $\ x^2\nmid \color{#0a0}{x^3},\,$ by $\,x^3/x^2 = x\not\in R,\, $ and $\,x^2\mid x^6\,$ by $\,x^6/x^2 = x^4\in R.\ $ It should prove enlightening to examine why your argument for integers breaks down in this polynomial ring. This example shows that the proof for integers must employ some special property of integers that is not enjoyed by all domains. Here that property is unique factorization, or an equivalent, e.g. that if a prime divides a product then it divides some factor.