Narrated 'Abdul-Hamid bin Ja'far: My father informed me, from Ibn Mina, from ABu Sa'eed bin Abi Fadalah Al-Ansari - and he was one of the Companions - who said: 'I heard the Messenger of Allah (ﷺ) said: When Allah gathers the people on the Day of Judgement - a Day in which there is no doubt in - a caller will call out: 'Whoever committed Shirk in any of his deeds he did for Allah - then let him seek his reward from other than Allah. For indeed Allah is the most free of the partners from any need of Shirk.

حَدَّثَنَا مُحَمَّدُ بْنُ بَشَّارٍ، وَغَيْرُ وَاحِدٍ، ‏‏‏‏‏‏قَالُوا:‏‏‏‏ حَدَّثَنَا مُحَمَّدُ بْنُ بَكْرٍ الْبُرْسَانِيُّ، عَنْ عَبْدِ الْحَمِيدِ بْنِ جَعْفَرٍ، أَخْبَرَنِي أَبِي، عَنِ ابْنِ مِينَاءَ، عَنْ أَبِي سَعْدِ بْنِ أَبِي فَضَالَةَ الْأَنْصَارِيِّ وَكَانَ مِنَ الصَّحَابَةِ، ‏‏‏‏‏‏قَالَ:‏‏‏‏ سَمِعْتُ رَسُولَ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ، ‏‏‏‏‏‏يَقُولُ:‏‏‏‏ إِذَا جَمَعَ اللَّهُ النَّاسَ لِيَوْمِ الْقِيَامَةِ يَوْمَ لَا رَيْبَ فِيهِ نَادَى مُنَادٍ مَنْ كَانَ أَشْرَكَ فِي عَمَلٍ عَمِلَهُ لِلَّهِ أَحَدًا فَلْيَطْلُبْ ثَوَابَهُ مِنْ عِنْدِ غَيْرِ اللَّهِ فَإِنَّ اللَّهَ أَغْنَى الشُّرَكَاءِ عَنِ الشِّرْكِ ، ‏‏‏‏‏‏قَالَ أَبُو عِيسَى:‏‏‏‏ هَذَا حَدِيثٌ حَسَنٌ غَرِيبٌ، ‏‏‏‏‏‏لَا نَعْرِفُهُ إِلَّا مِنْ حَدِيثِ مُحَمَّدِ بْنِ بَكْرٍ.

Explanation
تفسير الحديث

This hadith speaks about the Day of Judgment, when Allah will gather people on that great day. The Prophet Muhammad (peace be upon him) indicates that those who sincerely work for Allah without associating partners will receive their reward and compensation from Allah. However, those who associated partners with Allah in their actions will be told to seek their rewards from others, as Allah is free from needing partners in His worship. This hadith underlines the importance of sincerity in worship and actions, emphasizing that intentions must be purely for Allah.

هذا الحديث يتحدث عن يوم القيامة، حيث سيجمع الله الناس في ذلك اليوم العظيم. يشير الرسول محمد صلى الله عليه وسلم إلى أن من أخلص في عمله لله ولم يشرك به أحداً، سيكون له الأجر والثواب من الله. أما من أشرك في عمله لله واختلطت نواياه، فسوف يُطالب بإيجاد جزائه من غير الله، حيث أن الله غني عن الشركاء والشرك. يُظهر هذا الحديث أهمية الإخلاص في العبادة والأعمال، وضرورة أن تكون النوايا خالصة لله تعالى.

Source: Jami' Al-Tirmidhi by Abu `Isa Muhammad at-Tirmidhi