Hasan Basri adviced some of his students admonishing them about avoiding the state of being proud. He said;
1) Do not deceive yourself into being too proud becuase you are in a good or righteous environment, for there is no place that is better than Paradise, and our father, Adam (as), experienced there what is known to all.
2) Do not become proud merely because you worship often, for consider what happened to Iblees (Satan) after he spent a great deal of time worshiping.
3) Do not think yourself great because you have met with righteous people, for there is no man more righteous than the Prophet (saw), yet the disbelievers and hypocrites did not benefit by simply knowing him.
[Taken from “Gems And Jewels”, P. 182]