The wise, when he knows that that by which he perceives all objects in sleep or in waking is the great omnipresent Self, grieves no more.
In plain words: The one who sees and knows things, whether we are awake or dreaming, is the great Self that is everywhere. A wise person who understands this stops grieving.