Let h:A→A′ be a ring homomorphism, S a multiplicative subset of A, i=iAS:A→S−1A, i′=iA′h(S):A′→S−1A′=(h(S))−1A′ the canonical homomorphisms and h1=S−1h:S−1A→S−1A′, so that there is a commutative diagram
Ai↓S−1Ahh1A′i′↓S−1A′
Let p be a prime ideal of A such that p∩S=∅. Then a′↦S−1a′ is a surjective mapping of the set F of ideals of A′ lying above p onto the set F1 of ideals of S−1A′ lying above S−1p and the mapping a1′↦i′(a1′) is a bijection of F1 onto the set of ideals belonging to F and is saturated with respect to h(S); in particular p′↦S−1p′ is a bijection of the set of prime ideals of A′ lying above p onto the set of prime ideals of S−1A′ lying above S−1p.
We know that S−1p is a prime ideal of S−1A and that i1(S−1p)=p (Chapter 11, § 2, no. 5, Proposition 11); if there exists an ideal b′ of S−1A′ lying above S−1p, then h(i1(b′))=i(h1(b′))=p; as S−1i′(b′)=b′ (loc. cit.), this already shows that the image of F under the mapping a′↦S−1a′ contains F1. On the other hand, if a′∈F, a∈A and s∈S, there are the following equivalences
h1(a/s)∈S−1a′⟺h(a)/h(s)∈S−1a′
⟺ there exists t∈S such that h(t)h(a)∈a′⟺ there exists t∈S such that ta∈p⟺a/z∈S−1p.
Hence h1−1(S−1a′)=S−1p, which completes the proof that the image of F under the mapping a′↦S−1a′ is equal to F1; the other assertions follow from Chapter 11, § 2, no. 5, Proposition 11.
Bourbaki puts the proof directly after the statement, so what is above is the statement and its proof together.