In The Hunger Games, Katniss is attacked by Clove, but saved at the last moment when Thresh kills Clove. Thresh is then in a position to kill Katniss, too, but says (quoting from memory):
Just this once, Twelve. For Rue.
Then runs back into the woods.
How did Thresh know that Katniss had befriended Rue?