Musnad Ahmad 1389
It was narrated that Abu Salamah said:
Two men from Yemen came to stay with Talhah bin `Ubaidullah. One of them was killed with the Messenger of Allah (ﷺ) and the other remained for a year after that and then he died in his bed. Talhah bin `Ubaidullah was shown [in a dream] that the one who died in his bed entered Paradise some time before the other. Talhah mentioned that to the Messenger of Allah (ﷺ) and the Messenger of Allah (ﷺ) said: “How long did he live after (the one who died first)?` He said: “One year.” The Messenger of Allah (ﷺ) said: “He offered eighteen hundred (extra) prayers and fasted Ramadan.`
حَدَّثَنَا مُحَمَّدُ بْنُ عُبَيْدٍ، حَدَّثَنَا مُحَمَّدُ بْنُ إِسْحَاقَ، عَنْ مُحَمَّدِ بْنِ إِبْرَاهِيمَ، عَنْ أَبِي سَلَمَةَ، قَالَ نَزَلَ رَجُلَانِ مِنْ أَهْلِ الْيَمَنِ عَلَى طَلْحَةَ بْنِ عُبَيْدِ اللَّهِ فَقُتِلَ أَحَدُهُمَا مَعَ رَسُولِ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ ثُمَّ مَكَثَ الْآخَرُ بَعْدَهُ سَنَةً ثُمَّ مَاتَ عَلَى فِرَاشِهِ فَأُرِيَ طَلْحَةُ بْنُ عُبَيْدِ اللَّهِ أَنَّ الَّذِي مَاتَ عَلَى فِرَاشِهِ دَخَلَ الْجَنَّةَ قَبْلَ الْآخَرِ بِحِينٍ فَذَكَرَ ذَلِكَ طَلْحَةُ لِرَسُولِ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ فَقَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ كَمْ مَكَثَ فِي الْأَرْضِ بَعْدَهُ قَالَ حَوْلًا فَقَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ صَلَّى أَلْفًا وَثَمَانِ مِائَةِ صَلَاةٍ وَصَامَ رَمَضَانَ‏.‏