David hace una lista de sus militares
(2 S 24.1-25)
1 Satán se levantó contra Israel, y tentó a David para que hiciera una lista de todos los hombres en edad de ser soldados. 2 Entonces David les dijo a Joab y a los jefes del ejército:

—Vayan por todo el país, y cuenten a todos los hombres en edad militar, para que yo sepa cuántos soldados tengo.

3 Pero Joab le contestó:

—Yo le pido a Dios que multiplique a su pueblo, y que lo haga cien veces más grande de lo que ahora es. Pero si ya todos te servimos fielmente, ¿para qué quieres saber cuántos somos? Lo único que vas a conseguir es que Dios nos castigue.

4 Sin embargo, la orden del rey pudo más que la opinión de Joab, y este se vio obligado a obedecer.
Cuando regresó a Jerusalén, 5 Joab le informó al rey cuántos hombres había en edad militar. En Israel había un millón cien mil, y en Judá, cuatrocientos setenta mil. 6 Pero como a Joab no le gustó lo que el rey había ordenado hacer, no contó a los hombres de las tribus de Leví y de Benjamín.
7 A Dios no le agradó lo que David había hecho, y decidió castigar al pueblo de Israel. 8 Pero David le dijo a Dios: «Hice muy mal al desconfiar de ti y basar mi seguridad en el número de mis soldados. Te ruego que me perdones por haber sido tan tonto».
9-12 Entonces, Dios le habló al profeta Gad y le dijo:

«Ve a decirle a David que lo voy a castigar, y que puede escoger uno de estos tres castigos: Tres años de hambre en todo el país; ser perseguido por sus enemigos durante tres meses; o que todo el pueblo sufra enfermedades y que yo envíe a mi ángel a causar gran destrucción durante tres días».

Gad fue, entregó el mensaje y le dijo a David: «Dime qué respuesta debo llevarle a Dios». 13 Y David le dijo a Gad:

—¡Me resulta difícil elegir uno de los tres! Pero Dios es compasivo, así que prefiero que sea él quien me castigue. No quiero que me hagan sufrir mis enemigos.

14 Entonces Dios envió una enfermedad por todo Israel, y murieron setenta mil personas. 15-27 Luego mandó a un ángel para que destruyera Jerusalén. El ángel salió y comenzó a destruir Jerusalén justo en donde Ornán el jebuseo limpiaba el trigo. El ángel volaba y tenía una espada en la mano.
David y los jefes del pueblo estaban vestidos con ropas ásperas en señal de tristeza. Cuando David y los líderes del pueblo vieron que el ángel estaba a punto de destruir la ciudad, se inclinaron hasta tocar el suelo con la frente. Entonces David dijo: «Dios mío, yo fui el que ordenó contar a los soldados. Yo soy el que hizo mal y pecó contra ti. Por favor, no castigues a tu pueblo. Mejor castígame a mí y a mi familia».
Entonces el ángel de Dios envió a Gad con este mensaje para David: «Ve y constrúyeme un altar en el lugar donde Ornán limpia el trigo».
De inmediato David se fue a construir el altar. Mientras tanto, Ornán y sus cuatro hijos estaban limpiando el trigo. Al ver al ángel, los hijos de Ornán se escondieron. Cuando Ornán vio que el rey se acercaba, salió y se inclinó ante él hasta tocar el suelo con su frente. David le dijo:

—He venido a comprarte el lugar donde limpias el trigo. Quiero construir allí un altar para Dios. Así se detendrá la enfermedad que está matando a la gente.

Ornán le contestó:

—Su Majestad, todo lo que tengo es suyo. Presente las ofrendas a Dios, y yo le daré los toros para el sacrificio, y hasta mis herramientas de trabajo para que las use como leña. También tome trigo para otra ofrenda. Yo se lo daré todo con mucho gusto.

—Te lo agradezco —dijo David—, pero yo no puedo ofrecerle a Dios algo que no me haya costado nada. Así que te pagaré todo lo que me des.

David le dio a Ornán seiscientas monedas de oro por ese lugar. Luego construyó allí un altar para Dios, donde sacrificó y quemó animales en su honor; le presentó ofrendas para hacer las paces, y le rogó que las aceptara.
Dios escuchó su petición, y envió fuego desde el cielo para quemar las ofrendas que estaban sobre el altar. Y se arrepintió Dios al ver el sufrimiento de los israelitas, y le dijo al ángel que los estaba destruyendo y matando: «Basta, ya no sigas».
Entonces el ángel guardó su espada.
El lugar para el templo
28-29 En esos días, el santuario y el altar de los sacrificios, que Moisés había hecho para Dios en el desierto, estaban en Gabaón. Cuando David se dio cuenta de que Dios había escuchado su oración, le presentó más ofrendas en el lugar que le había comprado a Ornán el jebuseo. 30 No quiso ir a Gabaón para conocer la voluntad de Dios, pues le daba miedo encontrarse con el ángel.
1 And Satan stood up against Israel, and provoked David to number Israel. 2 And David said to Joab and to the rulers of the people, Go, number Israel from Beer-sheba even to Dan; and bring the number of them to me, that I may know it . 3 And Joab answered, The LORD make his people an hundred times so many more as they be: but, my lord the king, are they not all my lord’s servants? why then doth my lord require this thing? why will he be a cause of trespass to Israel? 4 Nevertheless the king’s word prevailed against Joab. Wherefore Joab departed, and went throughout all Israel, and came to Jerusalem.
5 ¶ And Joab gave the sum of the number of the people unto David. And all they of Israel were a thousand thousand and an hundred thousand men that drew sword: and Judah was four hundred threescore and ten thousand men that drew sword. 6 But Levi and Benjamin counted he not among them: for the king’s word was abominable to Joab.
7 And God was displeased with this thing; therefore he smote Israel. 8 And David said unto God, I have sinned greatly, because I have done this thing: but now, I beseech thee, do away the iniquity of thy servant; for I have done very foolishly.
9 ¶ And the LORD spake unto Gad, David’s seer, saying, 10 Go and tell David, saying, Thus saith the LORD, I offer thee three things: choose thee one of them, that I may do it unto thee. 11 So Gad came to David, and said unto him, Thus saith the LORD, Choose thee 12 Either three years’ famine; or three months to be destroyed before thy foes, while that the sword of thine enemies overtaketh thee; or else three days the sword of the LORD, even the pestilence, in the land, and the angel of the LORD destroying throughout all the coasts of Israel. Now therefore advise thyself what word I shall bring again to him that sent me. 13 And David said unto Gad, I am in a great strait: let me fall now into the hand of the LORD; for very great are his mercies: but let me not fall into the hand of man.
14 ¶ So the LORD sent pestilence upon Israel: and there fell of Israel seventy thousand men. 15 And God sent an angel unto Jerusalem to destroy it: and as he was destroying, the LORD beheld, and he repented him of the evil, and said to the angel that destroyed, It is enough, stay now thine hand. And the angel of the LORD stood by the threshingfloor of Ornan the Jebusite. 16 And David lifted up his eyes, and saw the angel of the LORD stand between the earth and the heaven, having a drawn sword in his hand stretched out over Jerusalem. Then David and the elders of Israel, who were clothed in sackcloth, fell upon their faces. 17 And David said unto God, Is it not I that commanded the people to be numbered? even I it is that have sinned and done evil indeed; but as for these sheep, what have they done? let thine hand, I pray thee, O LORD my God, be on me, and on my father’s house; but not on thy people, that they should be plagued.
18 ¶ Then the angel of the LORD commanded Gad to say to David, that David should go up, and set up an altar unto the LORD in the threshingfloor of Ornan the Jebusite. 19 And David went up at the saying of Gad, which he spake in the name of the LORD. 20 And Ornan turned back, and saw the angel; and his four sons with him hid themselves. Now Ornan was threshing wheat. 21 And as David came to Ornan, Ornan looked and saw David, and went out of the threshingfloor, and bowed himself to David with his face to the ground. 22 Then David said to Ornan, Grant me the place of this threshingfloor, that I may build an altar therein unto the LORD: thou shalt grant it me for the full price: that the plague may be stayed from the people. 23 And Ornan said unto David, Take it to thee, and let my lord the king do that which is good in his eyes: lo, I give thee the oxen also for burnt offerings, and the threshing instruments for wood, and the wheat for the meat offering; I give it all. 24 And king David said to Ornan, Nay; but I will verily buy it for the full price: for I will not take that which is thine for the LORD, nor offer burnt offerings without cost. 25 So David gave to Ornan for the place six hundred shekels of gold by weight. 26 And David built there an altar unto the LORD, and offered burnt offerings and peace offerings, and called upon the LORD; and he answered him from heaven by fire upon the altar of burnt offering. 27 And the LORD commanded the angel; and he put up his sword again into the sheath thereof.
28 ¶ At that time when David saw that the LORD had answered him in the threshingfloor of Ornan the Jebusite, then he sacrificed there. 29 For the tabernacle of the LORD, which Moses made in the wilderness, and the altar of the burnt offering, were at that season in the high place at Gibeon. 30 But David could not go before it to enquire of God: for he was afraid because of the sword of the angel of the LORD.