He said he had directed them to beef up security around all schools.
He also warned those who described as “politicising”security issues, saying the security agents would “deal with” them.
Buhari made the pronouncements on Friday during the reception held for the released Dapchi girls and their parents at the Presidential Villa, Abuja.
The President said, “The security services have since been directed to put in place further measures around all schools vulnerable to attacks to ensure the safety of our pupils/students and teachers and school workers.
“I have tasked all the security agencies to work to ensure that we do not witness any recurrence of these incidents.
“Security chiefs have been warned in clear terms that any lapse on their parts will be viewed seriously,” he said.
As for those who he referred to as “politicising the security situation in the country”, Buhari urged them to “desist or face the wrath of security agencies.”
“May I also warn against those elements who have chosen to make political fortune of our citizens’ misfortune.
“Government would not tolerate any attempt by any person or group to trivialise or politicise security issues for politically motivated ends.
“Accordingly, security agencies would not hesitate to decisively deal with such unscrupulous characters,” he said.