There is nothing wrong in that. What we are not allowed to do is ask Allah to forgive them or to have mercy on them.

Is it allowed to wish well for the believers like saying all the best or anything like that for the exam

Etiquette, Morals and Heart-Softeners |