But when the inhabitants of Jabesh-gilead heard what the Philistines had done to Saul,