Hadithcore
Mishkat al-Masabih, 4219

Abu Huraira reported God’s messenger as saying, “If anyone spends the night with grease on his hand which he has not washed away, he can blame only himself if some trouble comes to him.” Tirmidhi, Abu Dawud and Ibn Majah transmitted it.

وَعَنْ أَبِي هُرَيْرَةَ قَالَ: قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: «مَنْ بَاتَ وَفِي يَدِهِ غَمَرٌ لَمْ يَغْسِلْهُ فَأَصَابَهُ شَيْءٌ فَلَا يَلُومَنَّ إِلَّا نَفْسَهُ» . رَوَاهُ التِّرْمِذِيُّ وَأَبُو دَاوُدَ وَابْن مَاجَه

References1 variant
In-Book Reference
Book 21, Hadith 56