James 1:5

If any of you lacks wisdom, he should ask God, who gives generously to all without finding fault, and it will be given to him.

James 3:13

Who is wise and understanding among you? Let him show it by his good life, by deeds done in the humility that comes from wisdom.

James 5:16b

Therefore confess your sins to each other and pray for each other so that you may be healed. The prayer of a righteous man is powerful and effective.