Gauss's law
This is a consequence of Gauss's law. Indeed, if is any smooth region, then by Gauss's law the flux of the electrostatic field is proportional to the charge enclosed: