By the time he left Chang'an, according to "Nitto Shingu Shogyo Mokuroku"(Catalogue of sacred teachings newly sought in the Tang), he had 423 sections totalling 559 scrolls and, as a result of the October, 842 Great Anti-Buddhist Persecution, was able to go back to Japan in the unexpected form of the expulsion of foreign monks (February 845).
長安を去る時には423部・合計559巻を持っていた（『入唐新求聖教目録』）そして、842年（会昌2年）10月、会昌の廃仏に遭い、外国人僧の国外追放という思わぬ形で帰国の夢がかなう（会昌5年2月）。