PURPLE HERON
This looks to me like a purple heron although it isn't included in my copy of the Helm Guide to the Birds of Borneo. However it does breed in southern and eastern Asia as well as central and southern Europe and Africa, and there are reports of an increasing population in this area of Sabah..