Someone walking greets the person sitting down Al-Adab Al-Mufrad 994
Arabic hadith text
قَالَ ابْنُ جُرَيْجٍ: فَأَخْبَرَنِي أَبُو الزُّبَيْرِ، أَنَّهُ سَمِعَ جَابِرًا يَقُولُ: الْمَاشِيَانِ إِذَا اجْتَمَعَا فَأَيُّهُمَا بَدَأَ بِالسَّلاَمِ فَهُوَ أَفْضَلُ.
Translation
Jabir said, "When two people walking meet, then the one who gives the greeting first is the better of them."