Robin Williams taught Rami Malek to live in the moment.

Rami Malek

Rami Malek

The 39-year-old actor worked with the late Hollywood legend on what-would-be Robin's last film, 'Night at the Museum: Secret of the Tomb', before his tragic passing, and he has recalled how Robin taught him a really important message about being more present.

Speaking on The Tonight Show with Jimmy Fallon, he shared: "We're shooting at the British Museum at night and we have the place all to ourselves. 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 my God. Who are you?'

"And then dip back down into this other place. He would see us all on our phones and devices and he'd be like, 'What happened to [face-to-face communication]?' And so I see him veer off and he walks off alone, and 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?' I walk up to 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?'"

Meanwhile, Rami previously confessed he has enjoyed being able to "take a step back" amidst the coronavirus pandemic and has been learning how to "take better care" of himself.

He said: "I think we’ve all been doing a lot of self-examination and prioritising and acknowledging just how much our relationships mean to us. It’s not something I didn’t know before, but it’s been helpful to take a step back and just really acknowledge how I’m living and how to improve, take better care of ourselves and the world we live in."