Prophet Nuh (as) was sent by Allah to guide the people of Naynawah, who had fallen into idol worship after the passing of five righteous men. After preaching for 950 years without success, Nuh (as) built an ark under divine instruction, leading to the Great Flood that destroyed all disbelievers, including his own family. Following the flood, Nuh (as) and the believers disembarked on Mount Judi, grateful to Allah for their salvation.