Three people exbark on a adventure then the two have to forget it

Im not even sure what the movie was about, but I just remember the ending part. The end was three people and two had to forget that they had an adventure, but 1 remembered and visited the place they worked in. Im pretty sure the two people thought the person was familar but im not sure.

That sounds like Sphere (1998)
starring Dustin Hoffman and Sharon Stone
from the book by Michael Crichton.
They explore an alien spaceship at the bottom of the ocean
and at the end, the three explorers agree to forget about it completely
due to the psychic powers they acquire,
but one of them does not do as agreed.