Al-Adab Al-Mufrad, Book 50, Hadith 1220 (In-Book)

Abu Hurayra reported that the Prophet, may Allah bless him and grant him peace, said, "Anyone who spends the night with grease on his hand and is afflicted by something should not blame anyone but himself."

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

sunnah.com