The Messenger of Allah ﷺ said, "When Allah gathers the first and the last on the Day of Resurrection, a day about which there is no doubt, a caller will announce, 'Whoever associated anyone with Allah in a deed he performed for Allah, let him seek his reward from someone other than Allah, for Allah is the most independent of partners and has no need of any association.'"
حدثنا محمد بن بشار وهارون بن عبد الله الحمال وإسحق بن منصور حدثنا محمد بن بكر البرساني أنبأنا عبد الحميد بن جعفر أخبرني أبي عن زياد بن ميناء
قال رسول الله ﷺ إذا جمع الله الأولين والآخرين يوم القيامة ليوم لا ريب فيه نادى مناد من كان أشرك في عمل عمله لله فليطلب ثوابه من عند غير الله فإن الله أغنى الشركاء عن الشرك
[Its isnad is hasan] Tirmidhi transmitted it, tafsir of the Quran, chapter on Surah Kahf, no. 3154, from Ibn Bashar, with this wording, and he said, hasan gharib. Ziyad bin Mina was deemed reliable by Tirmidhi and Ibn Hibban, while others considered him unknown, so his hadith is hasan.