From the hadeeth: "there is no monasticism in Islam, except Jihad for the sake of Allah"  it is clear that monasticism in not permitted in Islam. However, I find it difficult to reconcile with the hadeeth which says that,
"A time will come when the best property of a man will be his goats with which he can go up to the mountain peaks, leaving the hustle and bustle of town life. For his sustenance he should depend on his goats. He will be much safer in the mountains than in the towns where visible and invisible trials are ready to pick him up." 
The first hadeeth and many other quranic ayaat prove the general principle in Islam whereas the second hadeeth you quoted is referring to a specific time, a time of great fitnah.
 [Sunan Abi Dawood, hadeeth number 1729.]
 [Sahih al-Bukhaari, hadeeth number 7088.]< Back to Questions