The prophet who was cut in half by a saw was Prophet Zakariyya (Zechariah), the father of Prophet Yahya (John the Baptist).
This story is mentioned in the Quran, specifically in Surah Al-Anbiya (Chapter 21) verses 85-91.
According to the Quran, Zakariyya was a righteous prophet who was imprisoned and persecuted by the people of his time. They punished him by sawing him in half.
It is important to note that this story is a reminder of the trials and tribulations that prophets often faced in their mission to guide humanity.