Lewis Hamilton said he was inspired to victory in Sunday's Spanish Grand Prix by receiving a humbling message from a five-year-old boy who is fighting cancer.
The defending five-time world champion said the message from Harry Shaw, who is battling Ewing's Sarcoma, a rare form of bone cancer, helped him defeat Mercedes team-mate Valtteri Bottas who beat him to pole in a "nightmare" qualifying session on Saturday.
READ: Hamilton wins in Spain to take F1 championship lead
Hamilton said that, after being outpaced by Bottas, the message was a welcome boost to his spirits.
"Yesterday was a difficult day, but I arrived today and I got this great message from this young kid called Harry and he just became my spirit and that was my inspiration," Hamilton told Sky Sports after winning ahead of Bottas to return to the top of the world championship.
"When I woke up, I was a bit lost and kind of 'how's today going to go?' and then I saw that message and I was like 'I see you Harry - I've got you'.
"So I want to dedicate this one to Harry, if you are watching, and sending you the love."
Hamilton told reporters that after being outpaced to pole by Bottas at three consecutive events, he intended to analyse his one-lap performances.
"Yesterday, it was a bit of a nightmare," he said. "But luckily race pace has generally been quite good for me. I've been really happy and comfortable generally in the races."
After a fifth successive Mercedes one-two, Hamilton said he hoped that Ferrari would recover their form and mount a serious challenge to Mercedes.
Hamilton was linked with a future move to Ferrari on Sunday when Mercedes team chief Toto Wolff said that scenario had been discussed during contract talks last year.
Hamilton to Ferrari?
"I prefer it when they are in the mix with us," he said. "I prefer the races where, for example Bahrain, they're on the front row. I love that. Especially when we're kind of intertwined.
"The last couple of years that's what we've had and from a driver's point of view and a team's point of view it's much better."
Earlier Sunday, Wolff told reporters that he and Hamilton had discussed a future switch from Mercedes to Ferrari during contract talks and he stressed that it was important and "no drama" to be respectful and open-minded on the subject.
"We had the discussion when we negotiated the last contract and I think that you just have to be open-minded and understand that drivers will explore opportunities that exist and benchmark themselves," said Wolff.
"You have simply to acknowledge that probably it's in every driver's head to drive one day at Ferrari. It's the most iconic, historic brand out there and I respect a driver if he has the desire to drive at Ferrari.
"We have discussed it within the team and with Lewis and we have agreed on the topic."
Hamilton, 34, is under contract with Mercedes until the end of next year.
By then, he may have equalled Michael Schumacher's record of seven drivers' titles and be ready to retire to pursue his interests in fashion and music - or focus on one last big challenge on the track.
However, Wolff made clear that Hamilton has not expressed any desire to leave Mercedes.
"We are providing him with a car that is capable of achieving his objectives. I think if we continue to have a car that is on that level, there is no reason to go -- and we would love him to stay.
"If, one day, our ways part, it will be very positive and each of us will try to achieve success with a different set-up so no drama."