1 Chronicles (Author Compiled by Isaiah and Ezra from records of Nathan, Gad, Iddo, Ahijah, Jehu and others.)
Chapter 21
2And David said to Joab and to the rulers of the people, Go, number Israel from Beersheba even to Dan; and bring the number of them to me, that I may know it.
Original from The Bible Foundation - bf.org. They claim public domain status for their original text.