All perfect praise be to Allaah, The Lord of the Worlds. I testify that there is none worthy of worship except Allaah, and that Muhammad is His slave and Messenger.
We are not aware of any evidence about this statement and there is no great benefit in investigating it. Rather, a Muslim should be concerned about being better prepared for death as it is coming and there is no escape from it.
So, a Muslim should live on faith while being persistent in the obedience of Allaah so that Allaah would take his soul while in this state, i.e. dying while performing a good deed, and what a good end it is!
The general rule is that whoever lives upon something, he will die upon it, and whoever dies upon something, he will be resurrected upon it as stated by Ibn Katheer when interpreting the Saying of Allaah (which means): {O you who have believed, fear Allaah as He should be feared and do not die except as Muslims [in submission to Him].}[Quran 3:102]
Allaah Knows best.