Sri krishna devaraya was the emperor of vizayanagra. He had eight advisors.  tenali rama was one among them.  he was very clever and spontaneous.  sri krishna devaraya had some special kind of brinjal plants in his garden.  the brinjal was very rare kind and curry made out of it was very tasty which was loved by the emperor.  as it was a rare kind, the garden was very guarded and no one was allowed to view the plants without the emperor's permission. Once the emperor had arranged dinner for his advisors and the brinjal curry was served.  tenali rama had enjoyed the brinjal curry very much and went home.  but he was unable to forget the taste.  he told his wife about the taste of curry.  tenali rama's wife also liked brinjal curry, she asked tenali rama to bring few brinjals so that she can prepare a curry.  but tenali rama knew that the emperor was taking extreme care about the brinjal plants and he can easily detect a missing of even one brinjal from his garden. And, the emperor will punish such thief if caught stealing a brinjal from his garden. But tenali's wife pleaded him to bring a brinjal from the garden without telling anybody.  tenali rama had no choice other than stealing a brinjal from the emperor's garden. One night he went to the garden, jumped the wall and plucked few brinjals from the garden.  by the god's grace, no one had seen him.  his wife cooked the brinjals and the curry was very tasty. Like all the mothers, she too loved her son very much and wanted to serve a brinjal curry him. But tenali rama asked her not to do such thing because if their son reveals to anybody that he had a rare brinjal curry, then they may get caught and get punished for stealing a brinjal from the garden. But his wife did not agree.  she wanted to serve the curry to her son.  she was unable to eat the curry alone without serving her little kid who was sleeping after doing his homework on the roof of their house.  she asked tenali rama to find a way so that their son can also taste the brinjal curry.  tenali rama also loved his son, so he thought of an idea and with a lot of hesitation went on to the roof to wake up his child with a bucket of water and poured the water on the child. When the child woke up he said "It is raining.  let's go inside the house and have a dinner".  after going inside the room he changed the clothes of his son and gave him the rice and brinjal curry for the dinner. Tenali rama told his wife loudly that "It was raining outside, and let the boy sleep in the room". And the next day, the emperor came to know that few brinjals were missing in his garden.  the gardener who kept the count of each vegetable and flower found that the three brinjals were missing. It became a challenging issue for the emperor and took it very seriously.  he declared a reward for the person who can catch the thief.  chief advisor appaji suspected that only tenali rama was capable of doing such things. And they told the emperor about it.  the emperor sent his courtiers and asked tenali rama to come immediately. Once tenali rama came he asked him about the missing brinjals. Then tenali rama told, "I was not aware of the missing brinjals".  then the chief advisor told "Tenali rama was lying. let's enquire his son". The king sent his courtiers to bring tenali rama's son. Once his son came, he was asked what vegetable he had in the dinner last night. The child replied, "The brinjal curry and it was very tasty".  then the advisor told tenali rama that he needs to accept his crime.  but tenali rama said his son had slept very early and he might be saying something which he got in his dream. So the emperor asked the little kid that "Can you please explain clearly what had you done yesterday after coming from the school?"Tenali rama's son replied that "Yesterday after coming from the school, I played for some time and after that, I went on to the roof, did my homework, and slept on the roof.  but when the rain started, my father came and woke me up.  by that time my dress was fully wet, then we went inside, had the dinner and slept again". The chief advisor appaji was shocked because there was no rain at all yesterday. And the atmosphere was fully dry. So they thought the kid had a dream and freed tenali rama without any punishment.  however, later tenali raman told the truth to the emperor and was pardoned by the emperor for his clever witty idea. 
Stealing is not a good thing!  you can always use your brain and ease out of the difficult situations. 