 When take care of Hajj he then often visited the Dutch consulate office in Jeddah and became acquainted with Christiaan Snouck Hurgronje who eventually became his friend in discussing the teachings of Islam.After the defeat in the Cilegon War he was caught along with 100 other fighters.He was put in prison in Serang, then moved to Batavia.