The great Hindu epic 'Mahabharata' has another interesting story related to the 'Kartik Amavasyaa'. According to the story, 'the Pandavas', the five brothers Yudhishthhira, Bhima, Arjuna, Nakula and Sahdeva, were sentenced to thirteen years exile as a result of their defeat against 'the Kauravas' - Duryodhana and his ninety nine brothers, at the game of dice. Therefore, the Pandavas spent thirteen years in the jungles and returned to their kingdom on the day of 'Kartik Amavasyaa'. On their return, the people of their kingdom welcomed the Pandavas by celebrating the event by lighting the earthen lamps all over in their city.
Whenever Pandavas approached the tree, they worshipped it and Goddess Durga, the presiding deity. In the mean time, Kauravas were making every attempt to trace Pandavas, so that they could extend the exile time, because it was said that if they were found, they would have to spend another 12 years in the woods. However, the Kauravas could find the Pandavas only past the stipulated time. Subsequently, the Pandavas went to the shami tree, fetched their concealed weapons and went straight to the battle field to fight the Kauravas. Pandavas emerged victorious. The event took place in dasami and since good had achieved victory over the evil, it came to be known as Vijayadashmi. Since then, people hug each other under the shami tree and exchange its leaves.