"Loyalty to God, faith in the Unseen, was Joseph's anchor. In this lay the hiding of his power. Ed 54.1"
"Which hope we have as an anchor of the soul, both sure and stedfast, and which entereth into that within the veil;"
Both passages use the metaphor of an anchor to represent a source of stability and security in the face of adversity. In Hebrews, it's hope in God; in EGW, it's loyalty to God and faith in the unseen. The core idea is the same.
"“The arms of his hands were made strong By the hands of the mighty God of Jacob.” Ed 54.2"
"But his bow abode in strength, and the arms of his hands were made strong by the hands of the mighty God of Jacob; (from thence is the shepherd, the stone of Israel:)"
EGW directly quotes Genesis 49:24.
"To Daniel and his companions, at the very outset of their career, there came a decisive test. The direction that their food should be supplied from the royal table was an expression both of the king's favor and of his solicitude for their welfare. But a portion having been offered to idols, the food from the king's table was consecrated to idolatry; and in partaking of the king's bounty these youth would be regarded as uniting in his homage to false gods. In such homage loyalty to Jehovah forbade them to participate. Nor dared they risk the enervating effect of luxury and dissipation on physical, mental, and spiritual development. Ed 54.4"
"But Daniel purposed in his heart that he would not defile himself with the portion of the king’s meat, nor with the wine which he drank: therefore he requested of the prince of the eunuchs that he might not defile himself."
EGW elaborates on the principle of Daniel's refusal to defile himself, providing context and interpretation of his motives and the situation.