 Philosophy, logic and psychology were his favourite subjects.He studied several books of Orientalists and under their influence, became sceptical of religion and called himself a "rationalist".For almost nine years, he remained away from religion but repented and became a devout Muslim.