Hadithcore
Mishkat al-Masabih, 3660

Abu Musa used to say:

It is all the same to me whether I drink wine or worship this pillar instead of God.* Nasa’i transmitted it. *He says that the one sin is as serious as the other.

وَعَنْ أَبِي مُوسَى أَنَّهُ كَانَ يَقُولُ: مَا أُبالي شرِبتُ الخمرَ أَو عبدْتُ هذهِ السَّارِيةَ دونَ اللَّهِ. رَوَاهُ النَّسَائِيّ

References1 variant
In-Book Reference
Book 17, Hadith 94