Suppose that $X$ is a projective complex variety with rational singularities (i.e. for any resolution $f: Y \to X$, $f_* \mathcal{O}_Y=\mathcal{O}_X, Rf^i_*\mathcal{O}_Y=0~ \forall i \geq 1$). Let $f: Y \to X$ be a birational morphism, and $D$ be a Cartier divisor on $Y$. Suppose that $D$ is numerically trivial over $X$ (one can also assume that $D$ is $\mathbb Q$-linearly trivial over $X$ if it helps).
Then it is claimed that there exists a Cartier divisor $D_X$ such that $D = f^*D_X$. Why this is true?