Salvation is not based on anything we do, it is a free gift of God (Ephesians 2:8-9). But, Jesus says that if we love Him we will obey His commandments (John 14:15; 1 John 5:2-3). In our present passage His commands are that we serve those around us who have needs, “even the least of these.”
Who are “the least of these” around you who need a cup of cold water, a visit, a kind word, respite from the weather, or a meal? Are you providing? “Freely you have received, freely give!” (Matthew 10:8). Like the Ten Commandments, that latter too is a command from God, not merely a suggestion.