In Generations, Picard enters a place called the “Nexus” where he is surrounded by an illusion of an ideal life and family where he finds Kirk residing as well.
The pair then work together to get the bad guy — Soran.
It also served as a way to close the chapter on Captain Kirk’s tenure and pass along the torch at the same time.
The movie is not exactly the most celebrated entry in Star Trek canon, but watching the pair of captains interact with one another makes it worth it for any OG fan of the franchise.