It is narrated from Ibn Umar (may Allah be pleased with them both) that he said: "Whoever is prevented (due to illness), he should not exit the state of Ihram until he has performed the Tawaf of the House of Allah and the Sa'i between Safa and Marwah."
Hadith Referenceمسند الإمام الشافعي / كتاب الحج / 943
Hadith Takhrijأخرجه البخاري، المحصر، باب الاحصار في الحج (1810)۔