Ayatollah Khamenei told thousands of worshippers at Friday prayers in Tehran that Western nations are trying to mislead public opinion with accusations that Tehran is seeking to build nuclear weapons .