Azhar bin Rashid said: Anas bin Malik (may Allah be pleased with him) used to narrate hadiths to his students, and when he narrated something to them that they did not understand, they would go to Hasan (may Allah have mercy on him) to learn its explanation. One day Anas bin Malik (may Allah be pleased with him) narrated a hadith to them, that the Messenger of Allah (peace and blessings be upon him) said: "Do not seek light from the fire of the polytheists, and do not engrave Arabic on your rings." The students of Anas bin Malik (may Allah be pleased with him) came to Hasan (may Allah have mercy on him) and said: Today Anas narrated a hadith to us whose meaning we do not know. He asked: What did he narrate to you? They mentioned it. He said: Yes. As for his saying, 'Do not engrave Arabic on your rings,' it means: do not engrave 'Muhammad' on your rings. And as for his saying, 'Do not seek light from the fire of the polytheists,' it means: do not consult the polytheists in any of your affairs. The confirmation of this is in the Book of Allah: "O you who believe, do not take as intimates those other than yourselves; they will spare no effort to ruin you." [Surah Al Imran: 118]
Hadith Referenceالسنن الكبرى للبيهقي / كتاب آداب القاضي / 20408