All perfect praise be to Allah, The Lord of the Worlds. I testify that there is none worthy of worship except Allah, and that Muhammad,
, is His slave and Messenger.
Prayer in a mosque that was built from forbidden earnings is lawful and the sin of dealing in what is forbidden applies totally to the person who built the mosque and not the people who pray in it.
Allah knows best.