Sa'id bin al-Musayyib (may Allah have mercy on him) narrates from the Prophet (peace and blessings be upon him) that he (peace and blessings be upon him) said: "It is the hypocrite who leaves the mosque after the adhan, or a man who has some need and intends to return."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الصلاة / 4939