US Navy Boats (File Photo)

All 10 US Navy sailors have been released hours after they were detained by Iran, state media reported on Wednesday.

The sailors aboard two small patrol boats were taken into custody after they “inadvertently” strayed into Iranian waters.

Ahead of the release, an Iranian navy commander said that the authorities were satisfied that the US boats taken into custody were in Iranian territory unintentionally.

“Our final finding was that it has not been a hostile crossover meant for espionage or the like,” General Ali Fadavi, revolutionary guards navy commander, said.

“They reached the area due to a malfunction of their navigation systems, acknowledging that they did not know they were close to the Iranian territory of Farsi island, acknowledging the matter as being inadvertent and unintentional due to a breakdown of their systems.” (Al Jazeera)