So they worshipped the Lord, but they also served their own gods according to the religious practices of the nations from which they had been exiled.