He advised some of his students admonishing the about avoiding the state of being proud. he said:
1. Do not deceive yourself into becoming too proud because you are in a good or righteous environment, for there is no place that is better than Paradise, and our father Adam, experienced there what is known to all.
2. Do not become proud merely because you worship often, for consider what happened to Iblis (Satan) after he spent a great deal of time worshipping.
3. Do not think of yourself great because you have met with righteous people, for for there is no man more righteous than the Prophet , yet the disbelievers and hypocrites did not benefit by simply knowing him.
From: Gems and Jewels: Wise sayings, interesting events & moral lessons from Islamic history.