This is hadith #31 in Imam Nawawi’s famous collection. Our Prophet (ﷺ) advises us here what we should do if we want Allah to love us and also the people to love us.

Link to lesson with Abu Arwa Ali: