Joshua 1:9 says: Have not I commanded thee? Be strong and of a good courage; be not afraid, neither be thou dismayed: for the LORD thy God is with thee whithersoever thou goest.
(KJV).
The verse is spoken to Joshua as he takes leadership of Israel after the death of Moses, in Joshua 1. Read it in context at Joshua 1:9, or the full chapter at Joshua 1.