A magnitude 5.9 earthquake hit Davao de Oro on Friday, the Philippine Institute of Volcanology and Seismology (Phivolcs) said.