President Muhammadu Buhari on Wednesday visited the Kuje Prison, which was attacked by Boko Haram terrorists on Tuesday night.
Over 800 suspects, including Boko Haram suspects, were released by the attackers.
The Presidency had announced that Buhari was heading for a World Bank summit in Dakar, Senegal.
This had sparked anger as Nigerians accused Buhari of being insensitive to the insecurity in the country.
However, Buhari’s convoy arrived at the prison around 3:30pm.
The President inspected vehicles that were destroyed and was escorted around the facility for an assessment of damaged infrastructure.
“I am disappointed with the intelligence system,” President Buhari was quoted as saying in a statement later by his Senior Special Assistant on Media and Publicity, Garba Shehu. “How can terrorists organise, have weapons, attack a security installation and get away with it?”