Let $h: R\to S$ be a ring homomorphism. Let $P\subset R$ be a prime ideal. Give an example to show that in general $h(P)$ is not an ideal of $S$
The first thing I think is to take $R=\mathbb{Z}$ and $P=(2)$ but I do not know how to take $S$ or if this works in this way, any help is appreciated.
Note: $R$ and $S$ are commutative rings with unit.
Consider $S=\mathbb{R}$. With the injection map $h(x)=x$, $R=\mathbb{Z}$ and any prime ideal of $\mathbb{Z}$, say $P=(2)$ as you suggested.