It is narrated from Sayyiduna Umar bin al-Khattab (may Allah be pleased with him) that a group of three people asked him about praying voluntary prayers in the mosque, and he said: "You have asked me about the very thing I asked the Messenger of Allah (peace and blessings be upon him) about. He (peace and blessings be upon him) said: 'The obligatory prayer is in the mosque (or the mosques), and the voluntary prayer is at home.'" This hadith was narrated by Imam Ahmad bin Hanbal, by al-Tabarani in al-Awsat and by Ibn Hibban in his Sahih.
Hadith Referenceإتحاف الخيرة المهرة بزوائد المسانيد العشرة / كتاب المساجد / 1032