i have mistakenly tried to install the different version of firmware in router. Can I recover it?

Which router are you working with? What firmware version did you try to install?
what method of updating firmware did you use?