King David was a man after God's own heart; and yet David was a warrior, fighting God's battles against God's enemies. When David asked God permission to build a Temple of worship in Jerusalem, God denied David's request, because, God told David that 'he had shed much blood.' The blood that David shed, fighting God's battles and God's enemies, didn't 'disqualify' David from God's love; God called David 'a man after My own heart.' But it did disqualify him from building the Temple in Jerusalem. The ONLY blood that David shed that God DID count as sin against David was the MURDER of Uriah, Bathsheba's husband. The sword never left David's house because of THAT killing. God forgave David of Uriah's murder, but it cost David greatly.