But the Lord was not pleased with the thing David had done

The Lord is not pleased with some of the things his chosen ones do

And when the days of weeping were past, David sent for her, and took her into his house, and she became his wife and gave him a son. But the Lord was not pleased with the thing David had done.
2 Samuel 11:27