Corollary
Tag 048O, permanent. Cite it as [Bourbaki, Tag 048O].
Commutative Algebra, chapter II, § 3. Local rings. Passage from the local to the global
For an A-module M to be flat (resp. faithfully flat), it is necessary and sufficient that, for every maximal ideal m of A, M, be a flat (resp. faithfully flat) Am-module.*
The necessity of the conditions follows from Proposition 13. Conversely, if is a flat -module for every maximal ideal of , is a flat A-module by virtue of Proposition 15 applied to the case where is the identity. Finally, if is a faithfully flat -module for all , then hence for all (no. 3, Proposition 9), which proves that is a faithfully flat A-module (Chapter I, § 3, no. 1, Proposition 1 (d)).
Bourbaki puts the proof directly after the statement, so what is above is the statement and its proof together.