Sahih Muslim 142 a
Narration text is preserved in its supplied Arabic and English. Translated interfaces and reading guides do not add narration translations in other languages.
مَا مِنْ عَبْدٍ يَسْتَرْعِيهِ اللَّهُ رَعِيَّةً يَمُوتُ يَوْمَ يَمُوتُ وَهُوَ غَاشٌّ لِرَعِيَّتِهِ إِلاَّ حَرَّمَ اللَّهُ عَلَيْهِ الْجَنَّةَ "
Hasan reported:
Ubaidullah b. Ziyad paid a visit to Ma'qil b. Yasar Muzani in his illness of which he (later on) died. (At this juncture) Ma'qil said: I am going to narrate to you a hadith which I have heard from the Messenger of Allah (ﷺ) and which I would not have transmitted if I knew that I would survive. Verily I have heard the Messenger of Allah (ﷺ) say: There is none amongst the bondsmen who was entrusted with the affairs of his subjects and he died in such a state that he was dishonest in his dealings with those over whom he ruled that the Paradise is not forbidden for him.
Full reference and source
Sahih Muslim 142 a In-book : Book 1, Hadith 270 USC-MSA web (English) : Book 1, Hadith 261 (deprecated)
View source on Sunnah.com (opens in a new tab)