Once, at the kingdom of kashi ruled by king brahmadatta, royal priest devdutt thought, "King respect me a lot. all this honor I get, I don't know that it is because of my knowledge or because of my virtue. I should try to know this."One day, while returning from king's court, when devdutt was passing by treasury he stopped at treasury and went inside then silently picked up a coin and left. Treasurer was surprised to this. He thought, "Why would a great person like devdutt would pick up a coin from treasury without saying anything to anyone. if he picked coin from treasury then there must be some reason. may be he was in hurry, that's why didn't said anything. he will tell me later."On second day, devdutt did same and didn't said anything to treasurer. Treasurer saw this again but remained patient and kept silent and thought that may be even today devdutt didn't had time to tell him reason. Third day, while passing by treasurer devdutt stopped and went inside and this time he picked up handful of gold coins. Now treasurer couldn't keep silent. He immediately called soldiers and arrested devdutt. Next day, devdutt was presented in front of king. Treasurer told everything to king. Everyone in court was surprised that such great scholar was stealing from king's treasury. King got angry and said to devdutt, "You have committed a great crime. not only that, you also hurted our faith. you will be punished for this."After saying this to devdutt, king called soldiers and told them to cut all fingers of devdutt's hand as punishment for his crime of stealing from treasury. Listening to this devdutt smiled. Seeing him smiling, king asked him, "Why are you smiling at such time?"Devdutt said, "I didn't steal money to become rich. I just wanted to know if you respected me because of my knowledge or my virtue.I tested this and today, I got my answer. my knowledge is same as before but in last few days, only thing that changed was my virtue, when I stole my virtue was broken and because of that I was getting punished."King understood whole situation and he freed devdutt with due respect. 
It is not just knowledge or talent which get us respect but it is our virtue, moral and good behavior towards others that get us honor and respect. 