Abu Salamah (may Allah have mercy on him) narrates that two men from the people of Yemen came and stayed with Sayyiduna Talhah bin Ubaydullah (may Allah be pleased with him). One of them was martyred (in jihad) alongside the Messenger of Allah (peace and blessings be upon him), and the other lived on for a year after him and then died in his bed.
Sayyiduna Talhah bin Ubaydullah (may Allah be pleased with him) was shown in a dream that the one who died in his bed entered Paradise some time before the other. He mentioned this to the Messenger of Allah (peace and blessings be upon him), and the Messenger of Allah (peace and blessings be upon him) asked: "How long did he remain after him?" He said: "A year." The Messenger of Allah (peace and blessings be upon him) said: "He prayed one thousand eight hundred prayers (in that time) and fasted Ramadan."
Related hadith on this topic