When a good action or form of worship is done for the sake of God, you get positive points. These points are known as thawab. If you have more positive points (thawab) than negative points (ithim), then you enter heaven. If not, you enter hell. If your thawab and ithim are equal then you will be in limbo.
Source Islamic Dictionary