if you are moslem, I really dont know. I hear on the news that being a martyr for Allah gets you rights. Striving for Allah will be all you can do, but I do not know about forgiveness (allah is merciful) and not too much about other sins, other than you are punished under sharia law.
if you are christian beleive in Jesus and through him you can find redemption.
if you are jewish, go to yom kippur services and many other services and admit your sins . but the sins will not go away, you are just admitting that you did them and you have to make them right while on earth
if you are hindu I do not know
If you are buddhist, you have not acheived the proper state and must try to acheive more
if you are shinto, I dont know
if you are confucian, you must obey the family and ostracism results from disobeying
there is a lot I do not know