I have a proper morphism $f:X\to Y$ between proper $S$-schemes, where $S$ is a Noetherian base. I can show that for every field $k$ the induced map $$ f_\ast:S\text{-}\mathbf{Sch}(\mathop{\mathrm{Spec}} k, X)\to S\text{-}\mathbf{Sch}(\mathop{\mathrm{Spec}} k, Y) $$ is bijective. Does that imply that $f$ is a closed immersion?
A reference or a counterexample would be appreciated.