Dalil

Quran Saba 34:40

وَيَوۡمَ يَحۡشُرُهُمۡ جَمِيعٗا ثُمَّ يَقُولُ لِلۡمَلَٰٓئِكَةِ أَهَٰٓؤُلَآءِ إِيَّاكُمۡ كَانُواْ يَعۡبُدُونَ

Translation

And [mention] the Day when He will gather them all and then say to the angels, "Did these [people] used to worship you?"