It is narrated from Yahya al-Ghassani (may Allah have mercy on him) that the Messenger of Allah (peace and blessings be upon him) said: "Your walking to the mosque (for prayer) and your returning to your family (after finishing the prayer) are equal in reward."
This chain is mu'dal (with two or more consecutive narrators missing) and da'if (weak).
Hadith Referenceإتحاف الخيرة المهرة بزوائد المسانيد العشرة / كتاب المساجد / 973