God often says "no" to his children. He said no to Paul; no to Moses regarding Miriam's leprosy and his entering the Promised land; no to Jesus in Gethsamane. He now says no to David. That is part of His Godly attributes as a Father.
DAVID SERIES: A MAN AFTER GOD'S OWN HEART - PART 16: WHEN GOD SAYS NO, THEN WHAT?
2 SAMUEL 7: 1 After the king was settled in his palace and the Lord had given him rest from all his enemies around him, 2 he said to Nathan the prophet, ¡§Here I am, living in a house of cedar, while the Ark of God