The Chasam Sofer teaches: When a person thinks about Hashem, Hashem will think about him.
As it states (Mishlei 3:6), בְּכָל־דְּרָכֶ֥יךָ דָעֵ֑הוּ with everything you do, remember Hashem. And if you will do so וְ֝ה֗וּא יְיַשֵּׁ֥ר אֹֽרְחֹתֶֽיךָ, He will give you success in all your ways. For if you think about Hashem, Hashem is thinking about you, to help you. ~ R’ Elimelech Biderman Shlita
Isaiah 26, Hashem wilt keep him in shalom shalom ,perfect peace whose mind is focused on Him.