I'm reading Artin's Algebra. In 11.3.24, it is stated
Let $f$ be a monic integer polynomial, and let $g$ be another integer polynomial. If $f$ divides $g$ in $\Bbb Q[x]$, then $f$ divides $g$ in $\Bbb Z[x]$.
The proof being
Since $f$ is monic, we can do division with remainder in $\Bbb Z[x]$: $g = f q + r$. This equation remains true in the ring $\Bbb Q[x]$, and division with remainder in $\Bbb Q[x]$ gives the same result. In $\Bbb Q[x]$, $f $ divides $g$. Therefore $r = 0$, and $f$ divides $g$ in $\Bbb Z[x]$.
I can't understand why division in $\Bbb Q[x]$ gives the same result.