It is permissible to accept the donation of a non-Muslim for the construction of a masjid with the following conditions:

1) He is not an atheist.

2) It is considered to be an act of virtue in his faith.

3) It is unlikely he will boast and make the people of the masjid feel indebted to him.

4) His donation will not result in Muslims attending any religious programmes or events organised by him.

5) Muslims do not begin to compromise their beliefs merely to please him.[1]

Only with the above conditions can funds from a non-Muslim be accepted as waqf for a masjid.

Thus, keeping the above in mind, it might be wise to utilise funds happily donated by a non-Muslim for another virtuous cause with the acknowledgement of the non-Muslim. Alternatively, the non-Muslim could gift the money to a Muslim who in-turn can out of his freewill without any coercion give the money to the masjid.