Gratitude is a significant theme in 1 Nephi.
In chapter 2, the Lord tells Lehi that people seek to take his life because he has been declaring the truth, and He commands him to depart into the wilderness with his family. Lehi promptly does so and, after pitching his tent, he builds an altar, offers a burnt sacrifice, and gives thanks to the Lord.
In chapters 3 and 4, Nephi and his brothers return to Jerusalem to accomplish the dangerous task of obtaining the brass plates. After they safely return to their parents in the wilderness in chapter 5, they again offer burnt offerings and give thanks to the Lord.
In chapter 7, Nephi and his brothers return to Jerusalem to invite Ishmael and his family to join them on their journey. When the whole group safely arrives at Lehi's camp, we see the same pattern.
Lastly, in chapter 16, after Nephi obtains food for his family in a time of scarcity by following the directions of the Liahona, his family gives thanks unto the Lord again.
In three of the four examples mentioned above, it explicitly says that Lehi and his family offered burnt offerings and sacrifices when giving thanks. These gifts, or offerings, were given in accordance with the Law of Moses. However, the Law of Moses was fulfilled when Christ atoned for the sins of the world and the Law was replaced with a higher Law. How, then, can we apply these scriptures to ourselves when we give thanks to the Lord?
After fulfilling the Law of Moses, the Lord, speaking to the Nephites, said the following:
This idea of offering ourselves as sacrifices to the Lord is echoed in Romans 12.
We can follow Nephi and Lehi's examples by offering thanks to the Lord for protection, guidance, and other blessings that He gives us. When we give thanks, rather than offering burnt offerings, we can offer ourselves as sacrifices to the Lord by renewing our commitment to follow Him and serving those around us. We can commit to study the scriptures and the words of living prophets more diligently, to pray more sincerely, or to worship in the temple more often.
If we offer ourselves to the Lord Jesus Christ, the Lord will guide, bless, and protect us just as He guided, blessed, and protected Lehi and his family.