Hadith 822B1

قَالَ مَالِك : وَلَوْ أَنَّ رَجُلًا جَهِلَ أَنْ يَكُونَ آخِرُ عَهْدِهِ الطَّوَافَ بِالْبَيْتِ ، حَتَّى صَدَرَ لَمْ أَرَ عَلَيْهِ شَيْئًا إِلَّا أَنْ يَكُونَ قَرِيبًا ، فَيَرْجِعَ فَيَطُوفَ بِالْبَيْتِ ، ثُمَّ يَنْصَرِفَ إِذَا كَانَ قَدْ أَفَاضَ
Imam Malik, may Allah have mercy on him, said that if a person did not know the ruling regarding the Farewell Tawaf, and he returned from Makkah without performing the Farewell Tawaf, then it is not obligatory for him to return, except in the case that he is near Makkah, then he should return and perform the Tawaf, provided that he has already performed the Tawaf al-Ziyarah.
Hadith Reference موطا امام مالك رواية يحييٰ / كتاب الحج / 822B1
Hadith Takhrij «فواد عبدالباقي نمبر: 20 - كِتَابُ الْحَجِّ-ح: 122»