"Having prayed, they laid hands on them." See how Luke is brief: he does not say how they were ordained, but says only that they were ordained with prayer. A hand is laid upon a man — this is what ordination consists of, but God accomplishes everything. What kind of ordination did these seven men receive? Was it the diaconate? They were ordained precisely for this work, that is, for providing the faithful with necessary supplies.
Source: Commentary on Acts