His wife Sita and brother Laxmana went into exile along with him
John the Baptist was around 30 years old when he went into the wilderness.
Atang Dela Rama went by Queen of Zarzuela, and Atang.
Aranya kanda of Ramayan tells every moment of Rama in his exile.
Taraka Rama Rao Nandamuri went by NTR, Annagaru, and Viswa Vikhyatha Nata Sarvabhouma.
King Chulalongkorn went by Rama V.
King Prajadhipok went by Rama VII.
they went into the wilderness a few mies away
The Wilderness Road
Ravana had ordered Mahodara to fight Lakshamana, Rama's brother, but Mahodara disobeyed Ravana and went directly to Rama. The result of his disobedience was that he got destroyed by Rama, and became lifeless and shapeless on the field.
Jesus first went to the wilderness to pray.
We can interpret the answer after reading the Ramayana. Rama did not like neither hate Srilanka. He went to Srilanka to save his wife Sita, who was abducted by Srilankan King Ravana.
The Bible does not provide a specific age for John the Baptist when he went into the wilderness. However, it is generally believed that he began his ministry in his early thirties, which is when he likely started his time in the wilderness. This period is often associated with his preparation before baptizing Jesus and preaching to the people.