In case he belonged to a people with whom you have a treaty , then give blood-money to his family and free a believing slave . But he who has no means ( to do so ) should fast for a period of two months continuously to have his sins forgiven by God , and God is all-knowing and all-wise .