You have to read this
https://en.wikipedia.org/wiki/Mathe...lectromagnetic_field#Potential_field_approachdown to the section "Extension to quantum electrodynamics" (not including)
You need a good knowledge of vector calculus in order to understand the equations presented there and what is being said below.
As is being said in that Wikipedia article, Maxwell equations in the potential formulation and with the Lorentz gauge are:
one for the scalar potential ##\phi##
$$\nabla^2\phi-\frac{1}{c^2}\frac{\partial^2\phi}{\partial t^2}=-\frac{\rho}{\epsilon_0}$$
and one for the vector potential ##\vec{A}##
$$\nabla^2\vec{A}-\frac{1}{c^2}\frac{\partial^2\vec{A}}{\partial t^2}=\mu_0\vec{J}$$.
These two equations are particular cases of the inhomogeneous three dimensional wave equation, and so they tell us that the two potentials are waves, and also
reveal a causal relationship between the potentials and the charge and current density.
They tell us that the scalar potential ##\phi## is caused by the charge density ##\rho## and vector potential ##\vec{A}## has as a cause (as a source if we might say) the current density ##\vec{J}##.
These two equations have the following solutions, the first for ##\phi##
$$\phi(\vec{r},t)=\frac{1}{4\pi\epsilon_0}\int\frac{\rho(\vec{r'},t')}{|\vec{r}-\vec{r'}|}d^3\vec{r'}$$
and the second for ##\vec{A}##
$$\vec{A}(\vec{r},t)=\frac{\mu_0}{4\pi}\int\frac{\vec{J}(\vec{r'},t')}{|\vec{r}-\vec{r'}|}d^3\vec{r'}$$
We can still see from the above equations that the potentials ##\phi## and ##\vec{A}## have as sources (causes) the charge density ##\rho(\vec{r'},t')## and the current density ##\vec{J}(\vec{r'},t')## respectively.
It can be proven mathematically that the "source time" ##t'## has
two possible solutions and it is
##t'=t+\frac{|r-r'|}{c}## (the advanced time)
OR
##t'=t-\frac{|r-r'|}{c}## (the retarded time)
From these two solutions only the retarded time has a clear physical meaning because it means that the potentials at a point of distance ##r## at time ##t## is caused by the respective source (charge or current density) at an earlier time ##t-\frac{|r-r'|}{c}## (basic causal relationship is that past causes the present and present causes the future). If we take the advanced time as solution it would mean that the future causes the present and the past.