Nigerian President Muhammadu Buhari on Sunday condemned an attack on a funeral procession in the northeastern state of Borno that caused the death of tens of mourners.