President Goodluck Jonathan has made a surprise visit to north-east Nigeria, in the aftermath of mass killings by Boko Haram Islamist militants.
Mr Jonathan told some of the 5,000 refugees who fled last-week's violence: "I want to assure you that you will soon go back to your houses."