(Teachings from the Gita) Have you ever thought about what would happen to those who perform prayers and other rituals of worship and at the same time are also committing some sin?
Those who believe in God and are religious about their worship they know very well that performing a wrong action will lead to some misfortune. By performing acts of worship, their soul gets cleansed. So there is no reason for them to commit a sin intentionally. However, it may happen that due to their inherent nature they might be participants in some sin. If that is the case then by slowly and gradually that too will come to an end as they continue to worship.
In the end, anybody who worships God will join the virtuous path to life.