It is narrated from Sayyiduna Abdullah bin Abbas (may Allah be pleased with them both) that he said: "Abu Barzah al-Aslami was a soothsayer who used to judge between the Jews in the disputes they brought to him. Once some Muslims also took their dispute to him, so Allah Almighty revealed these verses: 'Have you not seen those who claim that they believe in what has been revealed to you and what was revealed before you, (and) wish to take their judgement to the taghut' up to His words: 'We intended nothing but good.'"
Related hadith on this topic