As the Companions including Ali heard these verses about the perfection of the faith, they wept because they felt that the mission of the Holy Prophet having been completed, He was apt to depart to meet his Lord.
After the farewell address, the party left Arafat in the evening and passed the night at Muzdalifa. The following day they went to Mina, and sacrificed the animals. The Holy Prophet sacrificed 63 animals, one for each year of his life, and these were shared by Ali. The men then shaved their heads, and the ceremony of the Hajj was completed. Thereafter the pilgrims left for Madina. On the return journey while the Companions were happy that their faith had been perfected, they were overwhelmed with grief at the thought that such consummation implied that the Holy Prophet was soon to depart from their midst.
"When a person dies, his works end, except for three: ongoing charity, knowledge that is benefited from, and a righteous child who prays for him."
Prophet Mohammed (PBUH)
"The best of what a man leaves behind are three: a righteous child who supplicates for him, ongoing charity the reward of which reaches him, and knowledge that is acted upon after him."
Sunan Ibn Mājah
"Every day two angels come down from Heaven and one of them says, 'O Allah! Compensate every person who spends in Your Cause,' and the other (angel) says, 'O Allah! Destroy every miser.'"
Sahih Bukhari