Ibn Abi Layla narrated that a funeral passed by Sayyiduna Ali and Sayyiduna Abu Mas'ud (may Allah be pleased with them both), and they both stood up.