The German President, Mr Joachim Gauck made the pledge of $50 million to assit Nigeria in the fight against the Boko Haram insurgency in the country.
He made the commitment after a closed-door meeting with President Buhari at the Presidential Villa in Abuja.
Mr Guack commiserated with Nigerians on the recent attacks by the Boko Haram in Internally Displaced Persons (IDPs) camps and promised to do all it can to ensure that the IDPs are returned to their homes and rehabilitated.
During a visit to Lagos State Governor, Akinwunmi Ambode, Mr Gauck had pledged that Germany would assist Nigeria with the technical know-how to successfully fight terrorism.
The German President, however, called for good governance and development if Nigeria must conquer terrorism on the long term.
President Buhari met with President Gauck a day after he returned from his 6-day vacation in London.