first of all lets think of this as a Covenant. Covenants has always had conditions throughout the bible. another term for testament is covenant. this does not mean that God's love is conditional but rather it is humans who walk away from something.
secondly, Abraham was a man of faith, but having faith because he heard and believed God's promises, he acted on his faith and started to walk to the promised land. the walking is a work and this walking did produce fruit.
third id advise reading the parable of the unforgiving servant located in matthew 18:21-35
fourth lets understand the relationship between faith and works.
Faith and Works
(
Genesis 15:1-7;
Romans 4:1-12;
Galatians 3:1-9;
Hebrews 11:8-19)
14What
doth it profit, my brethren, though a man say he hath faith, and have not works? can faith save him?
15If a brother or sister be naked, and destitute of daily food,
16And one of you say unto them, Depart in peace, be
ye warmed and filled; notwithstanding ye give them not those things which are needful to the body; what
doth it profit?
17Even so faith, if it hath not works, is dead, being alone.
18Yea, a man may say, Thou hast faith, and I have works: shew me thy faith without thy works, and I will shew thee my faith by my works.
19Thou believest that there is one God; thou doest well: the devils also believe, and tremble.
20But wilt thou know, O vain man, that faith without works is dead?
21Was not Abraham our father justified by works, when he had offered Isaac his son upon the altar?
22Seest thou how faith wrought with his works, and by works was faith made perfect?
23And the scripture was fulfilled which saith, Abraham believed God, and it was imputed unto him for righteousness: and he was called the Friend of God.
24Ye see then how that by works a man is justified, and not by faith only.
25Likewise also was not Rahab the harlot justified by works, when she had received the messengers, and had sent
them out another way?
26For as the body without the spirit is dead, so faith without works is dead also.
where does it say we are saved by faith only? even Abraham known for his faith still had works. Faith naturally produces works and is a sign. romans 1:17-18 is usually used for sola fide (faith alone) but it does not say faith ALONE. it says faith. looking at james above we see that works or action if that is a preferred term follows. we have faith but let's act on that faith. works is an act of faith which produces fruit
matthew 7
A Tree and its Fruit
(
Matthew 12:33-37;
Luke 6:43-45)
15Beware of false prophets, which come to you in sheep's clothing, but inwardly they are ravening wolves.
16Ye shall know them by their fruits. Do men gather grapes of thorns, or figs of thistles?
17Even so every good tree bringeth forth good fruit; but a corrupt tree bringeth forth evil fruit.
18A good tree cannot bring forth evil fruit, neither
can a corrupt tree bring forth good fruit.
19Every tree that bringeth not forth good fruit is hewn down, and cast into the fire.
20Wherefore by their fruits ye shall know them.
21Not every one that saith unto me, Lord, Lord, shall enter into the kingdom of heaven; but he that doeth the will of my Father which is in heaven.
22Many will say to me in that day, Lord, Lord, have we not prophesied in thy name? and in thy name have cast out devils? and in thy name done many wonderful works?
23And then will I profess unto them, I never knew you: depart from me, ye that work iniquity.
we could also touch base on the fruits of the flesh and of the spirit in Galatians 5
When pursuing God we would take on his nature. unforgivness is not love nor is it a fruit of the spirit.
15Whosoever shall confess that Jesus is the Son of God, God dwelleth in him, and he in God.
16And we have known and believed the love that God hath to us. God is love; and he that dwelleth in love dwelleth in God, and God in him.
17Herein is our love made perfect, that we may have boldness in the day of judgment: because as he is, so are we in this world.
18There is no fear in love; but perfect love casteth out fear: because fear hath torment. He that feareth is not made perfect in love.
19We love him, because he first loved us.
20If a man say, I love God, and hateth his brother, he is a liar: for he that loveth not his brother whom he hath seen, how can he love God whom he hath not seen?
21And this commandment have we from him, That he who loveth God love his brother also. 1 john 4
To make all of this simplified, desire God and pursue Him, like the man who desired a pearl he wanted and sold everything in order to acquire it did. ref: matthew 14:35-36
hope this is helpful