The Telugu collector who built a Rama temple with state funds — and went to prison until Rama himself paid the bail
Gopanna was the tax collector of Bhadrachalam under the Golconda Sultan. He used state revenue to build a temple to Rama, was thrown in prison for twelve years, and sang Telugu kirtanas that became the founding repertoire of South Indian devotional music. One night, the Sultan found six lakh gold coins on his pillow — paid by two travellers calling themselves Rama and Lakshmana.
In this story
The collector with a complaint
In the late 17th century, the Golconda Sultanate ruled much of the Telugu-speaking country. The Sultan was Abul Hasan Tana Shah, a relatively tolerant Muslim ruler who employed many Hindus in his administration. Among them was a Telugu brahmin named Gopanna, the tax collector — the tahsildar — of a small forest district called Bhadrachalam, on the banks of the Godavari river.
Bhadrachalam, the local tradition said, was the very place where Rama, Sita, and Lakshmana had stayed during their exile. A small, half-ruined shrine on a hill marked the spot. Gopanna visited it almost daily. He was a devout Rama-bhakta. He composed Telugu songs in the simple meters villagers could sing.
One day, walking around the dilapidated shrine, Gopanna said aloud, half to himself, half to Rama:
"రామా, నీవు ఇక్కడ ఉన్నావా, లేదా?" "Rāmā, nīvu ikkaḍa unnāvā, lēdā?" "Rama, are you here, or are you not?"
He looked at the broken walls and the weathered stone. "If you are here, you should have a proper temple. This shame I cannot bear."
The villagers around him said: "Sir, who will build it? We have no money. The Sultan's court will not fund a Hindu temple."
Gopanna thought for a long time.
Then he made a decision that would cost him twelve years of his life.
The temple of borrowed gold
Gopanna was the tax collector. The state revenue passed through his hands. He decided, quietly, that he would use part of the revenue to build the temple. He would record it accurately in the books — not as theft but as a loan — and he would, somehow, repay it later. He told the villagers his plan. They cheered.
The temple was built. It was magnificent — three sanctums (for Rama, Sita, Lakshmana), a tall gopuram, a stone-paved courtyard, gold ornaments for the deities, a great bell. The total cost was six lakh gold coins from the state treasury.
When the construction was finished, Gopanna stood in the new temple and wept and sang. The song was the first of what would become hundreds:
"పలుకే బంగారమాయెనా, కోదండపాణి?" "Palukē baṅgāramāyenā, Kōdaṇḍapāṇi?" "Has your speech become rare gold, O Bow-wielder?"
It was a complaint, sung as a song. Why are you so silent? You who used to speak — why does your voice cost so much now?
Word reached the Sultan eventually. The audit was conducted. Six lakh gold coins were missing. Gopanna was summoned to Golconda fort.
The trial and the sentence
The trial was short. Gopanna did not deny anything. He stood in front of Abul Hasan Tana Shah and explained, in simple Telugu:
"I used the money to build a temple to Rama at Bhadrachalam. The temple is finished. The deities are installed. I have not stolen — I have borrowed. I will repay it when I can."
The Sultan was stunned. "You expected to repay six lakh gold coins from a tax collector's salary?"
"From Rama," said Gopanna calmly. "He will repay."
The court laughed. The Sultan, however, was angry. He could not be seen letting state revenue be diverted to a religious project — even if he himself had no objection to Rama personally. The integrity of the treasury was at stake. He sentenced Gopanna to imprisonment in the Golconda fort dungeon until the money was repaid in full.
The dungeon was deep underground. It was wet. There were no windows, only a small grate above. Food was minimal. Gopanna was led down. The door was locked.
He was thirty-eight years old. He would not see daylight again for twelve years.
The cell that became a temple
Gopanna had brought nothing with him. But he had his voice. And he had Rama.
He began to sing.
For twelve years, every day, the prisoner in the deep dungeon of Golconda sang Telugu kirtanas to Rama. Some were complaints. Some were love-songs. Some were rage. Some were complete surrender. He had no instruments. He kept rhythm by tapping his fingers against the stone wall. He composed by listening to himself — there was no one else to listen.
A few of these songs are still sung in every Carnatic music concert today. A famous one, full of pleading:
"ఏ తీరుగ నను దయజూచేదవో, ఇనవంశోత్తమ రామా?" "Ē tīruga nanu dayajūchēdavō, inavaṃśōttama Rāmā?" "In what manner will you have mercy on me, O Rama, jewel of the solar dynasty?"
Another, more anguished:
"తక్కువేమి మనకు రామయ్య ఉండగా." "Takkuvēmi manaku Rāmayya uṇḍagā." "What is lacking for us, while Rama is with us?"
(He sang this on his hardest days — to remind himself.)
Sometimes he raged at Rama:
"రామా దాశరథీ." "Rāmā Dāśarathī." "O Rama, son of Dasharatha."
— a phrase he repeated thousands of times across thousands of nights.
The jailer, a Muslim guard, eventually became Gopanna's biggest fan. He listened every night through the grate. Some nights he wept. He did not speak Telugu well, but he understood what the songs were doing. After a year, he started bringing Gopanna scraps of paper and ink, smuggled in. Gopanna wrote down the songs. Hundreds of them survived.
The Sultan, in his palace above, did not know about this growing corpus. He had forgotten about Gopanna entirely. State business consumed him.
The night the gold appeared
In the twelfth year of Gopanna's imprisonment, the Sultan had a strange night.
Two travellers arrived at the gates of Golconda fort. One was dark-skinned, beautiful, dressed in simple but elegant clothes. The other was lighter, slightly behind, alert. They asked to see the Sultan urgently. The guards, struck by something they could not name in the dark man's face, allowed it.
The two travellers came into the throne room. They presented to Abul Hasan Tana Shah a heavy bag.
"What is this?" the Sultan asked.
"Six lakh gold coins. We are settling the debt of Gopanna, the tax collector of Bhadrachalam. Please release him."
The Sultan was suspicious. "Who are you?"
The dark traveller smiled. He said, in Telugu (though he could have spoken any tongue):
"మేము రామదాసుల ఋణం తీరుస్తున్నాము. మేము శ్రీరామచంద్రుడు, లక్ష్మణుడు." "Mēmu Rāmadāsula ṛṇaṃ tīrustunnāmu. Mēmu Śrīrāmachandruḍu, Lakṣmaṇuḍu." "We are clearing the debt of Ramadas. We are Sri Ramachandra and Lakshmana."
The Sultan stared. He weighed the bag. The coins were unusual — they bore an old stamp not seen in his kingdom. He counted them. Exactly six lakh.
He looked up. The two travellers were gone.
He sat alone in the throne room with a bag of gold for which there was no possible explanation.
The release
The Sultan called for Gopanna immediately. The dungeon was unlocked. Gopanna, frail, bent, white-bearded, was helped up the stairs into the throne room. He had not seen daylight in twelve years and could not see properly.
The Sultan placed the bag of coins before him. "These were paid by two travellers who said they were Rama and Lakshmana. They are old coins — minted, my treasurer says, four centuries ago and not in use. Did you tell me, twelve years ago, that Rama would repay?"
Gopanna, weeping, fell to his knees. "I told you, sire. I told you."
The Sultan took off his own turban and laid it on Gopanna's head. "From this day, your name in this kingdom is Bhadrachala Ramadas — the servant of Rama at Bhadrachalam. Take any title, any land, any post you wish. You are free. And tell your Rama, on my behalf, that I am sorry."
Ramadas asked only one thing: to be allowed to return to Bhadrachalam temple and spend his remaining days there. The Sultan granted it gladly. He even — the chronicles say — visited the temple himself once, to pay respects to a deity who could clear debts in obsolete coinage.
What this story holds
Bhadrachala Ramadas's kirtanas — the songs he composed in the twelve years of imprisonment — are the foundational repertoire of Carnatic music devotion. Saint Tyagaraja, who came a century later, openly cited Ramadas as his predecessor and inspiration. Tyagaraja sang Ramadas's songs all his life. Through Tyagaraja and the Trinity of Carnatic music, those dungeon-composed songs reached every temple, every concert hall, every Telugu and Tamil household across South India.
The temple at Bhadrachalam still stands today, on the hill above the Godavari, in present-day Telangana. Pilgrims come from across South India. The original deities Ramadas installed are still in the sanctum. The songs are still sung.
The deeper teaching is two-fold.
First: what you build with stolen love must still be paid for. Ramadas was not exonerated — Rama did not say "the temple was for me, you owe nothing." Rama, instead, paid the debt. The debt was real. Justice was upheld. But the debt was paid.
Second: a prison cell does not end a song. Twelve years underground produced more lasting music than most free composers create in a lifetime. The constraint, in its own strange way, was the gift.
In Telugu households, when someone faces an unjust imprisonment — in a job, a marriage, a circumstance — the elders sometimes say: "Rāmadāsulā pāḍu." — "Sing like Ramadas." It is not advice to be passive. It is advice to keep composing while the world is unfair, because eventually — sometimes only once in twelve years — Rama himself walks up to the gate with the bill paid.
Some debts even the gods choose to settle in person.