Chanakya said this quote

Never make friends with people who are above or below you in status. Such friendships will never give you any happiness.