Imam as-Sadiq (a) narrated: When he lost his second son, Benjamin, Prophet Jacob supplicated to the Lord: “O Lord, is it not time to have Your mercy upon me? You have taken my sight and taken my sons away from me.”
Hence, Allah revealed to him: “Even if I cause them dead, I will certainly give them new life so as to gather you all in one situation. But, you should remember that ewe, which you slaughtered, fried, and ate, while you did not give anything of it to your neighbor who was observing fasting.”
After that, Prophet Jacob used to call his neighbors, including those who lived more than one mile away from him, to every meal he would make. (al-Wafi; part 3 page 96 (as quoted from al-Kafi))