One of my ethics professors had a similar sentiment about his students and it went along the following:
Be nice to your A students, because they will thank you in their doctoral dissertation.
Be nice to your B students, because they will help you with yours.
Be nice to your C students, because they will be the ones who donate millions to the university.
This is a great quote. I only steal the good ones.