In 1 Samuel 10, Saul was said to be given a new heart, and the Spirit of Hashem rushed upon him, and he prophesied with a group of prophets. (Please forgive my ignorance of Hebrew.) In 1 Samuel 16:14 after Saul's disobedience, the Spirit of Hashem left Saul and an evil spirit tormented him. But in 1 Samuel 19 when Saul is pursuing David, he comes across a group of prophets, and again he prophesied, only to then continue to pursue David.
How is it that the Spirit of Hashem came upon a man in the midst of an unrighteous act and caused him to do a right thing? Was this a unique occurrence, or are there other records of this type of thing happening? Does it happen today?