god will not forgive the sin of considering something equal to him but he may forgive the other sins of whomever he wants. one who considers anything equal to god has certainly gone far away from the right path.
إن الله لا يغفر أن يشرك به ويغفر ما دون ذلك لمن يشاء ومن يشرك بالله فقد ضل ضلالا بعيدا