Addressing an anti-terrorism meeting here, he pointed out that extraordinary times called for extraordinary measures, The News International reported.
"We cannot forget and forgive atrocities committed by the barbarians in Peshawar, Quetta and Wagah," the prime minister said.
"There will be no discrimination and exception in our war against terrorism," he declared.
Sharif asserted that citizens from all ethnicities and religious beliefs would be protected.
He warned that elements involved in terrorist activity would not be spared and inputs provided by intelligence agencies would be followed up.