I found this example in Contemporary Abstract Algebra by J. Gallian.
It was given that
$\phi (m) = m\pmod{n}$ is a homomorphism from $ \mathbb Z$ to $\mathbb Z_n$
I wanted to prove it and was able to reach to the following steps
$\phi(a+b) = (a+b)\pmod{n}$
= $(a\pmod{n}+ b\pmod{n})\pmod{n} $
Since $\phi(a) = a\pmod{n}$
Therefore, $\phi(a+b) = (\phi(a)+\phi(b))\pmod{n} $
I'm not sure what should be next steps so that we obtain.
$$\phi(a+b) = \phi(a) + \phi(b)$$
Edit Update: I was able to figure out the Answer it's mentioned as an answer for future reference.
So the thing was, I misunderstood the binary operation in $ \Bbb Z_{n} $ to be precise, $$ a*b = (a+b)(mod\,n)\;\; in \;\; \Bbb Z_{n} $$ Therefore, $$ \phi(a) * \phi(b) = (\phi(a) + \phi(b))(mod\,n)\,,\;\;\; where\;\;\phi(a) , \phi(b) \in \Bbb Z_{n} $$
And this proves that the mentioned map is a homomorphism.