Everything David did while he was king is included in the history written by the prophets Samuel, Nathan, and Gad.