Rabi' (may Allah have mercy on him) says that Imam al-Shafi'i (may Allah have mercy on him) said: Whoever cuts anything from the trees of the sanctuary owes compensation, whether he is in ihram or not: for a small tree a sheep, and for a large tree a cow. This is narrated from Ibn al-Zubayr (may Allah be pleased with them both) and Ata (may Allah have mercy on him) together.
(b) Ibn al-Zubayr (may Allah be pleased with them both) and Ata (may Allah have mercy on him) agree, in the earlier report on the ransom, that for a great tree (dawhah) there is a cow; the dawhah is a huge tree.
(c) And Ata (may Allah have mercy on him) said: For a tree smaller than that, a sheep.
(d) Imam al-Shafi'i (may Allah have mercy on him) said: Analogy, first of all, indicates what was described: that whoever damages it pays its value as ransom.
(e) The Shaykh said: We have narrated from Ibn Jurayj from Ata (may Allah have mercy on him), about a man who cuts from the trees of the sanctuary: For a twig, one dirham, and for a great tree, a cow.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الحج / 9950