What's the name of the theorem ...
This requirement is imposed by the norming axiom of probability theory, which holds that any probability measure has unit value ovver the sample space ---i.e., $\mathbb{P}(\Omega) = 1$. The restriction on the density is then obtained by recognising that, for a random variable $X: \Omega \rightarrow \mathbb{R}$, we have:
$$\mathbb{P}(X^{-1}(\mathcal{A})) = \text{Pr} (\mathcal{A}) = \int \limits_\mathcal{A} f_X(x) dx.$$
It is worth noting that the "axioms" of probability are usually taken as the starting place for work in this field, and within this limited context, they are not derived from earlier results. Within the usual probability framework these are not treated as results that you prove via theorems; you merely assert them as axioms. If you would like to treat them this way then you will need to go deeper into the literature on measurement of uncertainty, and look at how the standard probability measure is derived from more primitive conditions/desiderata. For example, Jaynes (2003) derives the probability "axioms" as consequences of consistency requirements for measuring uncertainty.