And [mention, O Muḥammad], the Day We will gather them all together - then We will say to those who associated others with Allāh, "[Remain in] your place, you and your 'partners.'"1 Then We will separate them,2 and their "partners" will say, "You did not used to worship us,3
Translation: Saheeh International (English)
1 Those they had associated with Allāh.
2 From the believers.
3 The inanimate objects, such as idols, will not have been aware of their worship of them. But those beings who consented to be worshipped will lie and deny it on the Day of Judgement.
And remember O Messenger, the Day of Judgement, when Allah will gather together all of creation, and will tell those who associated partners with Allah in the world to stay in their place – they and the ‘gods’ they used to worship beside Allah. Then He will separate those who were worshipped from those who worshipped them; and those who were worshipped will free themselves from those who worshipped them, saying, ‘It was not us you worshipped’.