Muwatta Imam Malik Book of Hajj, Hadith 64
Yahya related to me from Malik that Yahya ibn Said used to hear Said ibn al-Musayyab say, "Anyone that does umra in Shawwal, Dhu'l-Qada or Dhu l-Hijja, and then stays in Makka until it is time for the hajj, is doing tamattu if he then does hajj. He must sacrifice whatever animal it is easy for him to obtain, and if he cannot find one then he must fast three days during hajj and seven days when he returns."
وَحَدَّثَنِي عَنْ مَالِكٍ، عَنْ يَحْيَى بْنِ سَعِيدٍ، أَنَّهُ سَمِعَ سَعِيدَ بْنَ الْمُسَيَّبِ، يَقُولُ مَنِ اعْتَمَرَ فِي شَوَّالٍ أَوْ ذِي الْقَعْدَةِ أَوْ فِي ذِي الْحِجَّةِ ثُمَّ أَقَامَ بِمَكَّةَ حَتَّى يُدْرِكَهُ الْحَجُّ فَهُوَ مُتَمَتِّعٌ إِنْ حَجَّ وَمَا اسْتَيْسَرَ مِنَ الْهَدْىِ فَمَنْ لَمْ يَجِدْ فَصِيَامُ ثَلاَثَةِ أَيَّامٍ فِي الْحَجِّ وَسَبْعَةٍ إِذَا رَجَعَ .