The phrase min ghayr an yuḥḍira al-silʿah is essential: the merchandise should not be brought into the mosque. This protects the worship space from functioning as a commercial shopfront.
Agreeing on a necessary sale without displaying goods is different from bringing inventory inside for retail trade.