This part is taken from Various Stories & Tales in “Spiritual Stories” as Told by Ramana Maharshi
There was a king with a devoted queen. She was a devotee of Sri Rama and yearned that her husband should similarly be a devotee. One night she found that the king mumbled something in his sleep. She kept her ears close to his lips and heard the word ‘Rama’ repeated continually as in japa. She was delighted and the next day ordered the minister to hold a feast. The king having partaken of the feast asked his wife for an explanation. She related the whole occurrence and said that the feast was in gratitude to God for the fulfilment of a long cherished wish. The king was however annoyed that his devotion should have been found out. Some say that having thus betrayed God he considered himself unworthy of God and so committed suicide. It means that one should not openly display one’s piety. We may take it that the king told the queen not to make a fuss over his piety and they then lived happily together.