Speaking Sunday in Tehran , Mr. Ahmadinejad said his words were the same ones used by the late Ayatollah Ruhollah Khomeini nearly 27 years ago .