It is narrated from Sayyidah Aishah (may Allah be pleased with her) that the Prophet (peace and blessings be upon him) said: "Indeed a servant performs the deeds of the people of Paradise (outwardly), while in reality he is one of the people of Hell; and indeed a servant performs the deeds of the people of Hell, while in reality he is one of the people of Paradise." Imam Abd bin Humayd narrated this hadith, while the wording of Imam Abu Ya'la's narration is that the Messenger of Allah (peace and blessings be upon him) said: "Indeed a man performs (outwardly) the deeds of the people of Paradise, while it is written in the Preserved Tablet that he is one of the people of Hell; then before his death his state changes and he begins to perform the deeds of the people of Hell, as a result of which he enters Hell. Likewise, indeed a man performs the deeds of the people of Hell, while it is written in the decree of destiny that he is one of the people of Paradise; then before death he turns back and begins to perform the deeds of the people of Paradise, by virtue of which he enters Paradise." Imam al-Harith narrated this report as mawquf (as the Companion's own words).
It is narrated from Sayyiduna Abu Hurayrah (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: "This Ummah will act according to the Book of Allah for a period, then for a time it will act according to the Sunnah of the Messenger of Allah (peace and blessings be upon him), then it will begin to act on (analogy and) opinion; and when they act on their opinion, they will go astray themselves and lead others astray." Imam Abu Ya'la, Imam Ibn Hibban in his Sahih, Imam al-Hakim and Imam al-Bayhaqi recorded it.