But he spoke/gave visions directly to David. He dealt harshly with his other sin, but then called David a man after his heart.This is wrong. God gave Adam, Eve. Many men in the Bible took concubines. That doesn’t mean God approved of it.
Just saying, it reads to me like God had much higher concerns that David’s monogamy