The prophet who was commanded by God to sacrifice his son was Prophet Ibrahim (Abraham), also known as Ibrahim (AS) in Islam. He was asked to sacrifice his son Ismail (Ishmael) as a test of his faith. However, God intervened at the last moment, replacing Ismail with a ram. This event is commemorated in the Islamic festival of Eid al-Adha.
The story of Ibrahim's sacrifice is a powerful testament to the unwavering faith and obedience he exhibited. It teaches us the importance of putting our trust in God's will, even in the face of extreme hardship.