Did you read about the Gibeonites? They gave false testimony to the Israelites, who made a treaty with them under the false pretenses, but God held them to that treaty. He sent famine in David's time because Saul violated that treaty many years later.