Before the lamp of God had gone out, Samuel was lying down in the temple of the LORD, where the ark of God was located.
To make way for the account of God's revealing himself first to Samuel, we are here told, 1. How industrious Samuel was in serving God, according as his place and capacity were (Sa1 3:1): The child Samuel, though but a child, ministered unto the Lord before Eli. It was an aggravation of the wickedness of Eli's sons that the child Samuel shamed them.
Commenting on 1 Samuel 3:1-10
And ere the lamp of God went out in the temple of the Lord,.... The tabernacle so called; lamp is put for the lamps in the candlestick in the tabernacle, which were lighted every evening, and burnt till morning; by which time some of them at least usually went out, only it is said the western lamp never went out.
ere the lamp of God went out in the temple of the Lord--The "temple" seems to have become the established designation of the tabernacle, and the time indicated was towards the morning twilight, as the lamps were extinguished at sunrise (see Lev 6:12-13).