The holy man smiled and said, “After all, one is known by the company one keeps. That bird has always heard the talk of robbers. He imitates them and talks about robbing people. This one has repeated what he has always heard. He welcomes people to the ashram. Now, come inside and rest. I’ll tell you more about this place and these birds.”

The Rishi smiled and explained the effect of the company one has. The bird who heard robbers was repeating their words, and the one with the Rishi was speaking softly and greeting the people. The Rishi asked the king to take rest and said he'll tell him more about the birds and the place.
Meanings of difficult words:
Imitates Copies.
Company Friends.
National Council of Educational Research and Training (2006). A Tale of Two Birds (pp. 01-03). Published at the Publication Division by the Secretary, National Council of Educational Research and Training, Sri Aurobindo Marg, New Delhi.