The gift of discernment of spirits is one of the gifts of the Holy Spirit (1 Corinthians 12:4-11). It is given by the Holy Spirit to profit God’s kingdom. This rare gift will enable a believer to have better understanding of any matter beyond a literal sense.
The Bible reference
“Watch and pray so that you will not fall into temptation. The spirit is willing, but the flesh is weak”
(Matthew 26:41 NIV).