He prays superfluous people

And whoever sees that he prays with superfluous people, he enters into a guarantee that does not harm him, and it is said that whoever sees that he has become an imam will inherit an inheritance from the Almighty saying, ~We make them imams and make them heirs .~