Rami Malek is remembering the late Robin Williams and a sweet moment they shared while filming a movie together, the third installment of Night At The Museum

Malek had the opportunity to share this emotional story with Jimmy Fallon during Wednesday's The Tonight Show

Rami Malek remembers powerful Robin Williams moment

Rami Malek is sharing a powerful and emotional moment that he shared with his Night At The Museum co-star Robin Williams, a moment that taught the actor to live in the moment.

Rami Malek attends the 25th Annual Screen Actors Guild Awards 

While filming the final instalment of the film trilogy, Malek shared that he and his fellow co-workers were all sitting around and focusing on their phones, which Williams couldn't connect with.

"We're shooting at the British Museum at night and we have the place all to ourselves," the Mr. Robot star said. "And Robin — you could tell something was happening with him. He would go on these riffs every once in a while and light up the world and you'd be like, 'Oh Oh my God. Who are you?' And then dip back down into this other place."

Malek revealed that Williams would often wander while they were on set despite the rest of the team focusing on their technology.

"I see him veer off and he walks off alone," Malek shared. "He's just kind of staring at this massive rock in the British Museum, and I'm like, 'Oh, man. What's going on with him? Is he all right?'"

He then realized that Williams was reflecting on the past, and how far communication has come and was soaking in being in the presence of one of the most important relics of human history. 

The Oscar-winner continued, "I walk up to him and kind of say, 'Is everything okay?' And he looks at me, just kind of slightly over the shoulder, and he goes, 'How often do you get to be alone with the Rosetta Stone?'"

"That's the best story I've ever heard in my life," Fallon responded to Malek.

That third installment of the Night At The Museum franchise was Williams's final movie before he passed away at just 63 years old.

Dylan McDermott Joins Cast Of 'Law & Order': Organized Crime'

"Det. Stabler" has a handsome new co-star!

Dylan McDermott Joins Cast Of 'Law & Order: Organized Crime'

'The Office' Quiz

Test Your Knowledge!

What award did "Kevin" win at the "Dundies"?