Rouhani was speaking at a ceremony commemorating the anniversary of the start of the Islamic Republic's 1980-1988 war with Iraq.
Long-range missiles, speedboats and warships were shown in video footage as part of the ceremonies.
Saudi Arabia and the United States accuse Iran of attacking Saudi oil facilities on Sept. 14.
U.S. President Donald Trump on Friday (September 20) approved sending American troops to bolster Saudi Arabia's air and missile defences after the attacks on Saudi oil sites.
Iran denies involvement in the attack, which was claimed by Yemen's Houthi movement, a group aligned with Iran and currently fighting a Saudi-led alliance in Yemen's civil war.