It is narrated from Ibn al-Daylami (may Allah have mercy on him) (who was one of the three people who were in the service of Sayyiduna Mu'adh (may Allah be pleased with him)) that when the time of Sayyiduna Mu'adh's (may Allah be pleased with him) death drew near, I said: "Do I not see that the time of your death has come?" He said: "Yes, and this (moment of death) is a very bad time for lying. Whoever dies while having complete certainty in three things: that he knows that Allah is the Truth, that the Hour is surely coming, and that Allah Almighty will raise all the dead who are in the graves" (the narrator said:) then he said something in which there was encouragement for people (towards faith): "Such a person will be forgiven," but I do not know (the full statement).
This is a chain that has some criticism in it, because I have not yet been able to learn about the biography of Abu al-Daylam, while all the remaining narrators of the chain are thiqat (trustworthy).