My dear one,
You should do a lot of practice (lamrim) and tonglen, with OM MANI PADME HUM.
Please read Transforming Problems and The Door to Satisfaction.
In prison, think that it is not prison, it is your retreat house to become liberated, enlightened, and to enlighten countless beings, who are our precious mother sentient beings
With much love and prayers...