It is contextual - by or to are both correct, given the context. I cannot think of any situation where for would be OK.
_________________________
I'm immortal until proven otherwise