PATNA: Rashtriya Janata Dal Member of Parliament Mohammed Shahabuddin was sentenced to two years' imprisonment in the Siwan Communist Party of India-ML office attack case here on Friday.