It is narrated from Sayyiduna Anas (may Allah be pleased with him) that the Companions of the Messenger of Allah (peace and blessings be upon him) (may Allah be pleased with them) said: "O Messenger of Allah! When we are with you and you advise us, (our state is such) as if we are seeing Paradise and Hell with our own eyes; but when we get up and leave you and become occupied with our wives, children and wealth, that state of our hearts changes." At this, the Prophet (peace and blessings be upon him) said: "If you were to remain constantly in the state you are in when you are with me, the angels would shake hands with you face to face; but (the moments of life) are sometimes like this and sometimes like that."
Imam al-Daraqutni (may Allah have mercy on him) says: "This hadith of Thabit al-Bunani (may Allah have mercy on him) from Sayyiduna Anas (may Allah be pleased with him) is gharib; Ja'far bin Sulayman (may Allah have mercy on him) is alone in narrating it, and I have found it with me only through the narration of Abd al-Razzaq (may Allah have mercy on him)."
And there is a supporting narration (shahid) for this hadith in Sahih Muslim, from the hadith of Sayyiduna Hanzalah the scribe (may Allah be pleased with him).