بسم الله الرحمن الرحيم
It is alright to take the prize and use it. It is also alright to donate it to the mosque and it is a cause of reward as well.
Allah knows Best!
Darul Uloom Deoband
This answer was collected from the official ifta website of Darul Uloom Deoband in India.