Mishkat al-Masabih 181
وَعَن أَنَسِ بْنِ مَالِكٍ أَنَّ رَسُولَ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ كَانَ يَقُولُ: لَا تُشَدِّدُوا عَلَى أَنْفُسِكُمْ فَيُشَدِّدَ اللَّهُ عَلَيْكُمْ فَإِنَّ قَوْمًا شَدَّدُوا عَلَى أَنْفُسِهِمْ فَشَدَّدَ اللَّهُ عَلَيْهِمْ فَتِلْكَ بَقَايَاهُمْ فِي الصَّوَامِعِ والديار (رَهْبَانِيَّة ابتدعوها مَا كتبناها عَلَيْهِم) رَوَاهُ أَبُو دَاوُد
From Anas ibn Malik that the Messenger of Allah ﷺ used to say: "Do not be harsh on yourselves, lest Allah be harsh on you. For a people were harsh on themselves, so Allah was harsh on them, and those are their remnants in the monasteries and dwellings: 'Monasticism which they innovated; We did not prescribe it for them.'" Reported by Abu Dawud.