Optional prayers at home is better than performing it in the mosque
Optional (nawafil) prayers in the house is better than performing it in the mosque. This applies only to optional prayers, not obligatory prayers (fard).
Jabir  that the Messenger of Allah  said: "If one of you offers his prayers in the Mosque then he should make a portion of his prayers in his house, as Allah has made his prayers in house a means of betterment (for him)." [Ahmad and Muslim]
Umar  that the Messenger of Allah  said: "The nawafil salah (prayer) of a man in his house are a light; whoever wishes should lighten up his house." [Ahmad]
'Abdullah ibn 'Umar  reports that the Prophet  said: "Make some of your prayers in your houses and do not turn your houses into graves." [Abu Dawud and Ahmad]
Zaid ibn Thabit  on sound authority that the Messenger of Allah  said: "A person's salah (prayer) in his house is better than his salah in my mosque, except for the fard salah." [Abu Dawud]
An-Nawawi says: "The Prophet  encouraged one to offer nawafil in one's house because then the prayers are more private and will have less of a chance of being done for show and will be free from defects that vitiate good deeds. Furthermore, this will be a blessing for the house as mercy and angels will descend on it while Satan flees from it."