Hisham b. ‘Urwa, on his father’s authority, told that Hisham b. Hakim came upon some Nabataeans in Syria who had been made to stand in the sun with olive-oil poured over their heads. On his asking what the meaning of that was and being told that they were suffering punishment concerning the land-tax, Hisham said he could testify to having heard God’s Messenger say, “God will punish those who punish people in this world.” Muslim transmitted it.
Source: sunnah.com
Other translations
Arabic
وَعَنْ هِشَامِ بْنِ عُرْوَةَ عَنْ أَبِيهِ أَنَّ هشامَ بنَ حكيمٍ مَرَّ بِالشَّامِ عَلَى أُنَاسٍ مِنَ الْأَنْبَاطِ وَقَدْ أُقِيموا فِي الشَّمسِ وصُبَّ على رُؤوسِهِمُ الزَّيْتُ فَقَالَ: مَا هَذَا؟ قِيلَ: يُعَذَّبُونَ فِي الخَراجِ فَقَالَ هِشَامٌ: أَشْهَدُ لَسَمِعْتُ رَسُولَ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ يَقُولُ: «إِنَّ اللَّهَ يُعَذِّبُ الَّذِينَ يُعذبونَ النَّاسَ فِي الدُّنْيَا» . رَوَاهُ مُسلم
sunnah.com