I've tried it like this $5n≡3 \pmod 8$
$\implies 10n≡6 \pmod 8$
$\implies 2n≡6 \pmod 8$
$\implies n≡3 \pmod 4$
$\implies n=4a+3$
But when I put $a=0 \implies n=3$
putting it into the original condition we get $15≡3 \pmod 8$ which is false.
So, I'm wondering what is wrong in my solution.
The problem in your solution is that $5n\equiv 3 \pmod 8$ is not equivalent to $10n\equiv 6 \pmod 8$.
To solve this problems you would find invertible $mod\ 8$ such that when multiplied by $5$ let rest $1$ (in this case) and multiply the equation by it. For example, $5$ is invertible $mod\ 8$ and $$5.5=25\equiv 1\pmod8,$$ so we have $$n\equiv 25n\equiv 5.5n\equiv 5.3\equiv 15\equiv 7\pmod8.$$ Therefore $n=7+8k$ is solution of the equation for all integer $k$.