Peace be upon you and God's mercy and blessings.
Grand Ayatollah Sayyid Sistani (may God protect him):
If the government is authorized by the rightful owner to sell it based on an explicit or implicit contractual condition, or similar conditions for goods stored in ports, where the government reserves the right to sell them if they are not transported within a specified period, then the sale and purchase are valid. Otherwise, it is necessary to consult the rightful owner regarding that.
Grand Ayatollah Sayyid Khamenei (may God protect him):
If the sale was not with the owner's permission or knowledge of their consent, it is not permissible to buy or benefit from it.
May you be successful in all good.