Four Indians who were in custody of Nigerian authorities over the past three months were released on Friday and are on their way back home, External Affairs Minister Sushma Swaraj said.

Two of them had earlier written to Swaraj on Twitter, asking her to help them return to India. They said they were caught by Nigerian authorities and kept in Lagos for the past three months.

“I am happy to inform that we have secured the return of Capt Atul Sharma, Sudhir Kumar, Balvinder Singh and Viyas Yadav to India,” Swaraj wrote on Twitter.

Nigerian authorities took the four Indians into custody after finding them on a merchant ship that was allegedly used in an earlier crime, PTI reported.