Al-Adab Al-Mufrad, Book 42, Hadith 30 (In-Book)

Jabir said, "When two people walking meet, then the one who gives the greeting first is the better of them."

قَالَ ابْنُ جُرَيْجٍ‏:‏ فَأَخْبَرَنِي أَبُو الزُّبَيْرِ، أَنَّهُ سَمِعَ جَابِرًا يَقُولُ‏:‏ الْمَاشِيَانِ إِذَا اجْتَمَعَا فَأَيُّهُمَا بَدَأَ بِالسَّلاَمِ فَهُوَ أَفْضَلُ‏.‏

sunnah.com