Question
Can Muslims use the trees of a graveyard for the purposes of the mosque or for their own personal work, or not?
Answer
A graveyard is endowed (waqf) and a mosque is also endowed. It is correct to spend the property of one waqf on another waqf. But it is not correct to use it for one’s own work. والله أعلم بالصواب
Commentary:… The custodian of the graveyard may use it for his own personal work and may give it to his friends or relatives as a gift. Just as the custodian of an endowed orchard may himself eat from the orchard and may also feed his friends. Study the chapter on endowments (Bab al-Awqaf) in the books of hadith.