Hadith 1237

He told of a man who came to the Prophet and said, “So and so prays at night, and when morning comes he steals.” He replied, “What you say will restrain him.” Ahmad and Baihaqi, in Shu'ab al-iman, transmitted it.

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

Reference: 5612370
In-book reference: Book 4, Hadith 1237