Foolishly And Heart in the ASV
2 verses of the American Standard Version have both "foolishly" and "heart".
2 Samuel 24:10 And David’s heart smote him after that he had numbered the people. And David said unto Jehovah, I have sinned greatly in that which I have done: but now, O Jehovah, put away, I beseech thee, the iniquity of thy servant; for I have done very foolishly.
2 Chronicles 16:9 For the eyes of Jehovah run to and fro throughout the whole earth, to show himself strong in the behalf of them whose heart is perfect toward him. Herein thou hast done foolishly; for from henceforth thou shalt have wars.