In the Old Testament, God gave the Israelites several laws to follow and rituals to perform in order to be forgiven of their sins. These practices are the basis for the different rules and practices that modern day Jews practice, with the most important day of the year, Yom Kippur, being a day of prayer and fasting in the hope that God forgives your sins and grants you salvation for the next year.
In Islam, it is required that you practice the five pillars of Islam. Not doing so if you are able to could result in being denied entrance into the afterlife.
There are branches of Christianity that teach that, unless you perform certain actions, you will not go to Heaven. These range from simply being baptized to going door to door witnessing to others. Some are easy enough to do, such as being baptized as a baby, while others may take years to complete.
All three of these are based on things found in the Old Testament and view salvation as something you have to earn, but it isn't! The Bible says multiple times that there is nothing you can do to earn it! The work has already been done! Jesus' death on the cross cleared the path for us to enter into Heaven. The only thing we have to do is ask God to forgive our sins and follow Jesus.
There is nothing you can do to earn salvation. Jesus already did all the work for you. All you have to do is accept it.