Narrated Abu Mas'ud: The Prophet (saaw) said, "If a man spends on his family (with the intention of having a reward from Allah) sincerely for Allah's sake then it is a (kind of) alms-giving in reward for him.
Allah tells us in the Quran: "But perhaps you hate a thing and it is good for you; and perhaps you love a thing and it is bad for you. And Allah Knows, while you know not." [Quran] I absolutely LOVE this Ayah. It answers so many questions about life