Proposition 32.9.6. Let $f : X \to S$ be a morphism of schemes. Assume
$f$ is of finite type and separated, and
$S$ is quasi-compact and quasi-separated.
Then there exists a separated morphism of finite presentation $f' : X' \to S$ and a closed immersion $X \to X'$ of schemes over $S$.