The quote is from As The World Turns from the Still I Rise album, heres the verse from which the quote is taken from:
(...)
[2Pac]
Hahaha.. as the world turns..
and turns and turns and turns.. haha
This for the soldiers out there involved in the everyday struggle
Hopin to bubble, keep on hustlin, as the world turns
Money come and go, hoes come and go, foes come and go
Friends come and go.. my soldiers, stay eternal
Outlaw Immortalz, dedicated
I send this to black Jesus, only he can feed us
When you need us, as the world turns
Throw this shit in the deck, hahah
Niggaz gettin chin checked
From the East to the West best to wear a vest
Nigga we ain't the ones to test, fuck you
As the world turns
Outlaw ridahs, Mutah right beside us
Camillion, wanna make a million
Haha legit, as the world turns.. haha..
Burn baby burn
(...)
But since it is obvious that 2pac says friends scome and go and the line in the movie is wars come and go, it is rather a paraphrase and not actually a quote.