It is narrated from Sayyiduna Anas bin Malik (may Allah be pleased with him) that the Companions (may Allah be pleased with them) said: "O Messenger of Allah (peace and blessings be upon him)! When we are present in your noble company, our state of faith is of a particular kind, but when we part from you, that state of ours does not remain." He (peace and blessings be upon him) asked: "How do you stand with your Lord?" They said: "Allah alone is our Lord in every state, in private and in public (hidden and open)." He (peace and blessings be upon him) said: "Then this situation is not hypocrisy."
Musaddad recorded it, and all its narrators are thiqat (trustworthy).