JAKARTA, Indonesia — Aman Abdurrahman, a leading Islamic State recruiter and ideologue in Indonesia, was found guilty and sentenced to death on Friday on charges that he incited five deadly attacks in the country while he was in prison on an earlier terrorism conviction.

The five-judge panel ruled that Mr. Aman, although he played no operational role, still shared responsibility for the armed attacks in 2016 and 2017, which killed nine people and wounded dozens more. Eight of his followers who staged the attacks also died.

Mr. Aman, 46, who was often photographed scowling during court appearances, told the judges Friday that he did not care about their verdict. Then he got on his knees and kissed the courtroom floor in apparent gratitude for their making him a martyr.

“His role was very important in spreading religious outreach online that made his followers conduct bombings,” the chief judge, Ahmad Zaini, told the court in Jakarta, the Indonesian capital. “His followers who read his writings were inspired to commit terrorist acts.”