2 Samuel 24:10sakhal
Now David's heart troubled him after he had numbered the people. So David said to the Lord, "I have sinned greatly in what I have done. But now, O Lord, please take away the iniquity of Your servant, for I have acted very foolishly."
David confesses his census as sin, calling it acting very foolishly.
1 Samuel 13:13sakhal
Samuel said to Saul, "You have acted foolishly; you have not kept the commandment of the Lord your God, which He commanded you, for now the Lord would have established your kingdom over Israel forever.
Saul's disobedience to God's command is called foolish, costing his kingdom.
Numbers 12:11yaal
Then Aaron said to Moses, "Oh, my lord, I beg you, do not account {this} sin to us, in which we have acted foolishly and in which we have sinned.
Aaron links acting foolishly with sinning and asks forgiveness.
Jeremiah 29:23nevalah
because they have acted foolishly in Israel, and have committed adultery with their neighbors' wives and have spoken words in My name falsely, which I did not command them; and I am He who knows and am a witness," declares the Lord.'"
Adultery and false prophecy described as acting foolishly in Israel.