However, when the people of Gibeon heard what Joshua had done to Jericho and Ai,