1 Samuel 19:22
Then went he also to Ramah, and came to a great well that is in Sechu: and he asked and said, Where are Samuel and David? And one said, Behold, they be at Naioth in Ramah. Then went he also to Ramah, and came to a great well that is in Sechu: and he asked and said, Where are Samuel and David? And one said, Behold, they be at Naioth in Ramah.
Naioth in Ramah was Samuel's home and the location of his school of the prophets, and David had gone there with Samuel. The verse belongs to Saul's going to Ramah to hunt down David and capture him, asking where Samuel and David were and being told they were at Naioth in Ramah. It is part of the pursuit that brought Saul himself to Ramah and to the school of the prophets in search of David.
When Saul reached the school and came near the prophets, the Spirit of God came upon him and took hold of him, and he prophesied with them under divine influence. God thereby overruled Saul's murderous purpose so that he did not capture David, though David still had to hide. The influence that turned him came through contact with the school of the prophets, the prophetic voices, and their praying until the Holy Spirit rested upon them. That setting shows that God's Spirit could work even on Saul when he entered it.
The change was powerful but temporary, turning his attention for a time from his pursuit. For a time he forgot his hostility toward David and had a different spirit, but he did not keep or remain under that influence and needed a more lasting spiritual experience. He later returned to pursuing David, though he would have been in an excellent condition if he had remained under that influence. The schools of the prophets taught Scripture and praise to God and, through the power of the Holy Spirit, prepared people to go out and share their testimony and communicate the light God had given them in places where people needed it and in spiritually dark places. The episode stands as an example for schools shaped by the schools of the prophets.