Sayyiduna Abu Waqid al-Laythi (may Allah be pleased with him) said: We went out with the Messenger of Allah (peace and blessings be upon him) towards Hunayn, and we had only recently left disbelief. The polytheists had a lote tree near which they would sit in devotion and on which they would hang their weapons; it was called Dhat Anwat. The narrator said: We passed by that lote tree and said: O Messenger of Allah, make a Dhat Anwat for us just as they have a Dhat Anwat. The Messenger of Allah (peace and blessings be upon him) said: "Allahu Akbar! These are the very same ways. By the One in whose hand my soul is, you have said just as the Children of Israel said: 'Make for us a god just as they have gods.' Musa (peace be upon him) said: 'Indeed, you are an ignorant people' [Surah al-A'raf: 138]. You will surely follow the ways of those who came before you."
Hadith Referenceالمعجم الكبير للطبراني / باب الحاء / 3278