King Sāma of Bārāṇasī had a state horse Paṇḍava, whose trainer was the lame Giridanta. Observing that his trainer limped, the horse imitated him. When the king saw the horse limping, not being able to discover the reason, he asked his adviser, the Bodhisatta, to investigate the matter. The Bodhisatta reported that it was the result of evil association, and had the trainer replaced by another. The trainer was Devadatta (J.ii.98 f).
For the introductory story see the Mahilāmukha Jātaka.