Indeed. God would not fight for the cause of a profane people.
The reason why ‘David was a man after God’s own heart’ is not understood by most folks and too many fellow Christians.