Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
I am pretty sure this is an exercise in Atiyah-McDonald.
EDIT I just looked, and Exercises 2-5 in the first chapter have very similar statements, but not exactly the statement you are looking for...