AR Rahman said that he earlier decided to retire at the age of 40 but changed his mind after seeing Rajini's hard work.