His visit to the spy agency's headquarters came in the backdrop of the attempt on the life of leading Pakistani TV anchor Hamid Mir.
His brother has accused "certain elements" in the ISI and its chief of orchestrating the attack, a charge vehemently denied by the military here.
ISI chief Lt General Zaheer ul Islam received Sharif and gave him a detailed briefing on internal and external security situation of the country, the military said in a statement.
General Sharif appreciated the role of ISI towards national security and lauded the contributions and sacrifices of its officers and men towards strengthening the defence of the motherland, the statement said.
More From This Section
The Jang Group, which owns the TV channel where Mir works, also issued a statement that it respects the military.
The military here is one of the strongest institution in the country.
The Jang Group has said "it has not put the blame on any institution or section of any institution. The Jang Group values and respects all institutions. All including the accused must be presumed innocent until proven guilty. The Jang Group demands an independent and fair investigation without fear or favour."
"Some of this material we will share in good time after taking the consent of Hamid Mir now that he is out of danger," it said.