Khamenei's flag-draped coffin was carried into the shrine of Imam Reza in his hometown of Mashhad, eastern Iran, where thousands of mourners gathered to attend the final funeral ceremony.