Jindatt raja story
You may be referring to Jinadatta / Jindatt, a Jain householder story from Jain literature.
Short story: Jinadatta was a noble, pious merchant’s son who was deeply inclined toward Jain values and originally wished to remain unmarried and devote himself to the spiritual path. One day, in a Jina temple, he saw Jinamati, a virtuous and devout girl. Both were impressed by each other’s piety. Their families arranged the marriage, but before it could happen, a jealous town officer named Basudatta falsely accused Jinadatta of wrongdoing and got him punished. When Jinamati prayed with devotion, she invoked the protection of the Sasan Devi, and all attempts to kill Jinadatta failed. The king then investigated, found the truth, punished Basudatta, and Jinadatta was reunited with Jinamati. The story highlights devotion, truth, protection of the pious, and the power of Jain faith. ( jainqq.org)
If you want, I can also give this story in simple Gujarati/Hindi style or as a moral summary.