God is speaking to the prophet Isaiah (56:1-7 NASB)
Thus says the LORD, "Preserve justice and do righteousness, for My salvation is about to come and My righteousness to be revealed. How blessed is the man who does this, and the son of man who takes hold of it; Who keeps from profaning the sabbath, And keeps his hand from doing any evil. Let not the foreigner who has joined himself to the LORD say, 'The LORD will surely separate me from His people.' Nor let the eunuch say, 'Behold, I am a dry tree.' For thus says the LORD, To the eunuchs who keep My sabbaths, and choose what pleases Me, and hold fast My covenant, To them I will give in My house and within My walls a memorial, and a name better than that of sons and daughters; I will give them an everlasting name which will not be cut off. Also the foreigners who join themselves to the LORD, to minister to Him, and to love the name of the LORD, To be His servants, every one who keeps from profaning the sabbath and holds fast My covenant; Even those I will bring to My holy mountain and make them joyful in My house of prayer. Their burnt offerings and their sacrifices will be acceptable on My altar; For My house will be called a house of prayer for all the peoples."