Retaliate will still do the same amount of damage after a ko, as if something on your team had never gone down the turn before.
Example:
http://www.pokemonshowdown.com/replay/ou12898398
Slaking was Scarfed, but it has a wooping base 160 Atk stat. Doesn't make much sense to me.