In the Lorenz Gauge, we can write Maxwell's equations as: $$\tag1 \Box A^\beta=\mu_0j^\beta.$$
We then go on to solve this by treating each component $A^\beta$ as an independent solution of the scalar wave equation with source, and summing Green functions. That is: $$\tag2 A^\beta=\mu_0\int \frac{1}{4\pi |r-r'|}j^\beta(ct-|r-r'|, r')\ \mathrm d^{3}r'.$$
My question is, how have we ensured that the Lorenz gauge condition is still met?
Sure to write $(1)$, we needed $\partial_\mu A^\mu = 0$, but how have we ensured our solution $(2)$ meets this condition?