( ذلك هدى الله ) دين الله ، ( يهدي به ) يرشد به ، ( من يشاء من عباده ولو أشركوا ) أي : هؤلاء الذين سميناهم ، ( لحبط ) لبطل وذهب ، ( عنهم ما كانوا يعملون )
The guidance they received was Allah’s guidance, which He grants to whomever of His servants He wills. If they had associated others as partners to Allah, then their actions would be void, because associating partners with Allah nullifies good actions.