A Finnish court has acquitted three men and a woman of financing terrorism, the first terror-linked case in Finland.

The Helsinki Court of Appeal says the four defendants, who had collected 3,200 euros ($3,900) for the al-Shabab group in Somalia in 2008-2011, could not have known for certain the money would be used for committing terror crimes. The court said it believed their claims it was sent for charitable causes.

The appellate court on Wednesday quashed the 2014 verdict of a lower court, which also had found one of the defendants guilty of recruiting his brother to join al-Shabab, an al-Qaida allied group. It said there was no clear evidence of such action.

All the defendants are of Somali descent living in Finland.