The Blessed One teaches Visākhā on the nature of attachment and suffering.
Visākhā sutta - Discourse to Visākhā
Thus have I heard - At one time, the Blessed One was dwelling in Sāvatthi, in the Eastern Park, at Migāramāta's mansion. At that time, Visākhā's pleasing and beloved granddaughter had passed away. Then, Visākhā, with wet clothes and hair, approached the Blessed One during the day; having approached, she paid respects to the Blessed One and sat down to one side. While she was sitting to one side, the Blessed One addressed her:
"Visākhā, where have you come from, arriving here during the day with wet clothes and hair?"
"My granddaughter, who was dear and pleasing to me, has passed away, venerable sir. That is why I have come here during the day with wet clothes and hair."
"Would you, Visākhā, wish to have as many sons and grandsons as there are people in Sāvatthi?"
"I would, Blessed One, wish to have as many sons and grandsons as there are people in Sāvatthi."
"How many people die daily in Sāvatthi, Visākhā?"
"Ten even, venerable sir, people in Sāvatthi die daily; nine even, venerable sir; eight even, venerable sir; seven even, venerable sir; six even, venerable sir; five even, venerable sir; four even, venerable sir; three even, venerable sir; two even, venerable sir; one even, venerable sir. Sāvatthi is never free from people dying, venerable sir."
"What do you think, Visākhā, would you ever be without wet clothes and hair?"
"No, venerable sir. It is enough for me to have just a few sons and grandsons."
"Visākhā, for those who have a hundred dear ones, they have a hundred sufferings; for those who have ninety dear ones, they have ninety sufferings; for those who have eighty dear ones, they have eighty sufferings; for those who have seventy dear ones, they have seventy sufferings; for those who have sixty dear ones, they have sixty sufferings; for those who have fifty dear ones, they have fifty sufferings; for those who have forty dear ones, they have forty sufferings; for those who have thirty dear ones, they have thirty sufferings; for those who have twenty dear ones, they have twenty sufferings; for those who have ten dear ones, they have ten sufferings; for those who have nine dear ones, they have nine sufferings; for those who have eight dear ones, they have eight sufferings; for those who have seven dear ones, they have seven sufferings; for those who have six dear ones, they have six sufferings; for those who have five dear ones, they have five sufferings; for those who have four dear ones, they have four sufferings; for those who have three dear ones, they have three sufferings; for those who have two dear ones, they have two sufferings; for those who have one dear one, they have one suffering; for those who have no dear one, they have no suffering. They are sorrow-free, untainted, and unafflicted, I say."
Then, understanding the significance of this, the Blessed One at that time expressed this inspired utterance:
"Whatever sorrows and lamentations there are, various kinds of suffering in the world; these arise because of what is dear, without what is dear, they do not occur.
Therefore, those who are free from attachment, who have no dear ones anywhere in the world; aspiring to be sorrow-free and untainted, should not hold anything dear in the world."