From this post he was called , at the end of twenty years , to the chair of moral theology in Madrid . From this post he was called , at the end of twenty years , to the chair of moral theology in Madrid , where he died .