قَالُوا۟ فَأْتُوا۟ بِهِۦ عَلَىٰٓ أَعْيُنِ ٱلنَّاسِ لَعَلَّهُمْ يَشْهَدُونَ
Commentary:
The reason why Abraham was summoned to appear in public was either that those who had heard him speak ill of the idols should bear witness against him that he had broken the idols, or that after listening to the evidence against Abraham they might decide what punishment should be meted out to him. Or the reason might be that all people should witness the punishment that was to be inflicted on him. This is the significance of the words "that they may bear witness."
The reason why Abraham was summoned before the public was either that those, who had heard him speak ill of the idols, should bear witness against him, or that having listened to the evidence against him might decide what punishment should be meted out to him and that they should witness the punishment that was to be inflicted on him.