Hakimi has been sold by Real this week to Inter for a fee of €40m.
On social media, the fullback wrote: "Real Madrid is my home, I was raised, spoiled and educated to become the person I am.
"Thank you to all, to all the club workers, to my coaches and to all my teammates who accompanied me on this beautiful stage of my life. Finally, I would like to thank all the Madridistas who supported me and who will continue to always support the team.
"Thank you very much Real. Hala Madrid!"