I have read this statement :
Trials are independent (i.e. use binomial) if sampling is done with replacement.
Trials are dependent (i.e. use hypergeometric) if sampling is done without replacement from a known population size.
Can someone explain it /proove it ?
Thanks

Consider an urn with $5$ red balls and $5$ black balls, where drawing a red ball is considered a "success".
If we replace the ball after each selection, then we always have a probability of $0.5$ of selecting a red ball next. Thus, our probability $p$ of a success stays constant.
If we do not replace the ball each time, then that affects the probability for future selections. If we initially selected a red, then we now have a probability of $\frac{4}{9}$ of selecting a red. If we selected red again, then we now have a probability of $\frac{3}{8}$ of selecting a red, and so forth.
Similarly, if we initially selected a black, then we now have a probability of $\frac{5}{9}$ of selected a red. If we selected black again, then we now have a probability of $\frac{5}{8}$ of selecting a red, and so forth.