Here is a proof in a different, more calculational style.
(I'm assuming all variables are integers, and $\;s,t \geq 0\;$.)
We have to prove an equality related to divisibility, so it helps to remember that any non-negative integers $\;s\;$ and $\;t\;$ are equal iff they have the same divisors: $$(0)\;\;\;s = t \;\equiv\; \langle \forall d :: d|s \equiv d|t \rangle$$
Also, the key property of $\;\gcd(x,y)\;$ is that its divisors (and only those) divide both $\;x\;$ and $\;y\;$: $$(1)\;\;\;\langle \forall d :: d|\gcd(x,y) \;\equiv\; d|x \land d|y \rangle$$ (Actually, this could be the definition if we were restricting ourselves to non-negative numbers.)
Translating the original statement using $(0)$ and $(1)$, we are asked to prove
$$\langle \forall d :: d|x \land d|y \;\equiv\; d|x \land d|(a \cdot x + y) \rangle$$
or equivalently (by extracting the common conjunct)
$$\langle \forall d : d|x : d|y \equiv d|(a \cdot x + y) \rangle$$
The latter we can easily prove, for any $\;d\;$, as follows:
\begin{align}
& d|y \;\equiv\; d|(a \cdot x + y) \\
\Leftarrow & \;\;\;\;\;\text{"property of divisibility: numbers are equally divisible if their difference is"} \\
& d|(a \cdot x) \\
\Leftarrow & \;\;\;\;\;\text{"property of divisibility: a divisor of a factor also divides the product"} \\
& d|x \\
\end{align}
which completes the proof.