When the qiblah changed, the jews made a lot of noise about this. So Allah revealed that this isnt goodness, rather, goodness is whom believe in all of that is mentioned in the ayah and what he does. First comes imaan, such that deeds are accepted. Then comes the actions.