It is narrated from Abdullah bin Umar (may Allah be pleased with them) that he said: "Whoever is prevented from the House of Allah due to illness 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مسند الإمام الشافعي / كتاب الحج / 944
Hadith Takhrijأخرجه البخاري، المحصر، باب الاحصار في الحج (1810)۔