Sahih Bukhari Volume 2, Book 23, Hadith Number 398.

Narated By Jabir bin ‘Abdullah  : A funeral procession passed in front of us and the Prophet stood up and we too stood up. We said, ‘O Allah’s Apostle! This is the funeral procession of a Jew.” He said, “Whenever you see a funeral procession, you should stand up.”