Matthew 25
31“When the Son of Man comes in his glory and all the angels are with him, he will sit on his glorious throne. 32All the nations will be assembled in front of him, and he will cull them out, one from another, like a shepherd separates sheep from goats. 33He will put the sheep on his right but the goats on his left.
34“Then the king will say to those on his right, ‘Come, you who have been blessed by my Father! Inherit the kingdom prepared for you from the foundation of the world, 35because I was hungry, and you gave me something to eat. I was thirsty, and you gave me something to drink. I was a stranger, and you welcomed me. 36I was naked, and you clothed me. I was sick, and you took care of me. I was in prison, and you visited me.’
37“Then the righteous will say to him, ‘Lord, when did we see you hungry and give you something to eat, or thirsty and give you something to drink? 38When did we see you as a stranger and welcome you, or see you naked and clothe you? 39When did we see you sick or in prison, and visit you?’
40The king will answer them, ‘I tell all of youn with certainty, since you did it for one of the least important of these brothers of mine (Mark 3:35), you did it for me.’
I was told that it is because people did it out of love and not intentionally obeying a commandment to give, only then they would be made aware that what they had done was to Christ.
But the fact that Jesus taught 'when did we see you(...)' already informs us that when we give/welcome/clothe we know we are doing it to Him. And there are straightforward instructions to give (with promises of rewards):
Give to the one who begs from you, and do not refuse the one who would borrow from you. Matthew 5:42
But when you give to the needy, do not let your left hand know what your right hand is doing, so that your giving may be in secret. And your Father who sees in secret will reward you. Matthew 6:3-4
Give, and it will be given to you. A good measure, pressed down, shaken together, and running over will be poured into your lap. For with the measure you use, it will be measured back to you.” Luke 6:38
Sell your possessions, and give to the needy. Provide yourselves with moneybags that do not grow old, with a treasure in the heavens that does not fail, where no thief approaches and no moth destroys. For where your treasure is, there will your heart be also. Luke 12:33-34
Jesus said to him, “If you would be perfect, go, sell what you possess and give to the poor, and you will have treasure in heaven; and come, follow me.” Matthew 19:21
Jesus said keeping His commandments is loving Him:
Whoever has My commandments and keeps them is the one who loves Me. The one who loves Me will be loved by My Father, and I will love him and reveal Myself to him.” John 14:21
Why then are people asking Jesus questions? Is is for the reason stated?