He knocked at the door and inquired of the inmates how they all did , saying that if they were ill , he would be happy to prescribe for them and cure them .