The spiritual gift of word of wisdom comprises of word and wisdom. Greek word for “word” is logos. It is a word one receives in the heart without necessarily understanding the reason (Prov. 3:4-7) or worldly wisdom (1 Cor. 2:6), but know that it is the right thing to say or do (to judge) in the fear of God (1 Cor. 6:5). For the fear of the Lord is the beginning of wisdom (Prov. 1:7; 9:10; 15:33) Therefore if anyone lack wisdom, the ability to judge correctly in the fear of God, let Him ask of the Lord without doubting (James 1:5). Those who receive wisdom others will clearly see and not be able to resist the wisdom (Acts 6:10). Therefore here are some examples in the scripture of words of wisdom:
Extract taken from https://heavenscatalyst.org/witness/spiritual-gifts/
https://heavenscatalyst.org/witness/yeshua-heals/