A donation is a gift for charity, humanitarian aid, or to benefit a cause. A donation may take various forms, including money, alms, services, or goods such as clothing, toys, food, or vehicles.
Any money generated from unlawful business or work e.g. alcohol, is not allowed to be received as donation nor can be used in any work whether in Masjid or otherwise.
You will be rewarded for your kind intention of giving in charity, but if you come to know that the charity money was not given to the deserving, you must take it back from him and make it reach to the deserving. Your donation will be accepted when it reaches to the deserving.