It is interesting to note that monasticism is neither prescribed nor enjoined in the Bible, in both the Old and the New Testaments [1]. It is, however, mentioned in the Quran that monasticism is rather an invention by the People of the Books namely Christians and Jews [2]. According to the Quran, it's invented for the monks to seek God's good pleasure, but apparently most of the monks do not observe it as it ought to have been observed. Perhaps this book and manual from St. Benedict provided us with the most authentic and comprehensive descriptions of the rules of the monks' observations during the classical antiquity. By reading the rules I can appreciate why the monks have failed observe them ;-). Adding to the fact that it predates the Quran, these type of observations that were probably being referred to by the Quran.
Fun fact, there is an Ashtiname (Book of Peace), a letter sent by Muhammad to the Saint Catherine's Monastery [3]. The purpose is to guarantee the safety of its monks living there against any potential aggression by the Muslim individuals or army. Given the monastery is still exist and standing today despite of being there for more than a thousand years under Islamic government rule is probably the testament of the effectiveness of the covenant provided by the Ashtiname.
[1]https://theorthodoxlife.wordpress.com/2013/12/12/monasticism...
[2]https://www.islamicstudies.info/tafheem.php?sura=57&verse=26...