Maria Falaschi/Twitter(HONOLULU) -- Passengers on a Hawaii-bound United Airlines flight got the scare of a lifetime on Tuesday when a part of the plane's engine fell apart in midair, leaving metal pieces flapping in the wind.

"I thought we were going to die, and hoped that my kids knew that I loved them," one passenger told ABC News after the plane made an emergency landing. "It was horrible."

"The flight attendants were really professional, but they were scared. You could tell from their face,” she added.

United flight 1175 from San Francisco to Honolulu made an emergency landing on Tuesday afternoon after a “mechanical issue” caused the plane’s engine cover to come apart, the airline said in a statement Tuesday.

The plane, a Boeing 777, landed safely and no injuries were reported.

"United flight 1175 traveling to Honolulu from San Francisco landed safely after the pilots called for an emergency landing because of a loss of the engine cowling (the covering of the engine),” the statement said. “Our pilots followed all necessary protocols to safely land the aircraft. The aircraft taxied to the gate, and passengers deplaned normally."

"The flight landed safely, and all passengers deplaned normally at the gate," it added in separate statement.

United did not say exactly when the cowling came off, but it said there was no debris on the runway or taxiways.

Horrified passengers shared images from inside the plane, showing what appeared to be the plane’s bare engine, exposed in midair.

One of the passengers said he heard “a big metallic bang” that was followed by about 40 minutes of “shaking” until the plane finally landed.

A passenger, who shared images from aboard on Twitter, referred to the incident as the “scariest flight of my life,” while another said it felt like “people calmly preparing themselves for death” as the plane braced for the emergency landing.

The Federal Aviation Administration said it would investigate the cause of the malfunction.