In the Feynman Lectures on Physics, Volume 2, Chapter 6, Section 6-4 Feynman derives the electric potential due to a sphere with a surface charge distribution proportional to the cosine of the polar angle given by,
$$\sigma = \sigma_0 \cos \theta$$
Here is a link for reference.
https://www.feynmanlectures.caltech.edu/II_06.html
Here he argues that we can use the superposition principle and say that the electric potential of such a sphere can be approximated by considering two spheres of equal radius $a$ and uniform charge density with opposite signs almost nearly overlapping each other.
Since the potential due to a single sphere of uniform charge density, outside the sphere, is same as if all the charge was concentrated at the center, he concludes that the potential due to this arrangement at very huge distances can be approximated as the potential of a dipole by the superposition principle.
$$\phi = \frac{1}{4\pi \epsilon_0}\frac{p\cos \theta}{r^2}$$
(If you don't understand my wording, please refer to the link above to see what I am talking about)
Here is my question,
He states that the dipole moment of this dipole is given by,
$$p=\frac{4}{3}\pi \sigma_0 a^3$$
I don't understand how he arrived at this expression for the dipole moment. Can someone please help me understand?