Sayyid Nematullahi Al Jazairi says that I looked for a teacher who would teach me and I heard about Allamah Muhammad Baqer Al Majlisi who is the author of the book Bihaarul Anwaar in Isfahaan. I went to him and he taught me and took great care of me as if I was one of his children.
We in the course of our stay with each other had promised that whoever out of us died first would come in the dream of the other and relate about the world Hereafter.
Sayyid Jazairi says that he stayed with Allamah Majlisi for a long time until the Allamah fell sick and died. The funeral procession was an event which showed how respected he was.
Shortly after his death, Sayyid Jazairi went to the graveyard and sat and recited verses of the Holy Qur’an for him and cried in his remembrance of him and as a result fell asleep. In his dream, he saw Allamah Majlisi richly dressed and apparently in good condition.
Sayyid Jazairi remembered that Allamah had died and so asked him what happened to him when he was put in the grave. The Allamah replied that as soon as he was buried he was addressed by a voice which asked him what he had brought of good deeds in the world hereafter. The Allamah mentioned various deeds that he had performed but the voice was not satisfied and asked repeatedly.
The Allamah was terrified, and as he pondered he remembered an act of charity. He related that once as he was walking in the streets of Isfahan, he saw a poor old man being harassed by many pedestrians. The Allamah felt pity on the poor man and decided to gather courage to confront the crowd.
When he asked the crowd of people about the reason for their harassment, they replied that the poor man owed them all some amounts of money. The Allamah asked them to stop the harassment and to follow him to his house so that he would pay them the amount which the poor man owed them.
When the Allamah had related this event, a door to heaven was opened for him and so many blessings were showered for him. (Jamiul Qasas Lil Redha Kadhimi Page 99)
source : sibtayn