Maybe you are referring to this scripture, where some demons are aware of who Christ is.
Mark 1:24 Saying, Let us alone; what have we to do with thee, thou Jesus of Nazareth? art thou come to destroy us? I know thee who thou art, the Holy One of God.