Deuteronomy 18:18 I will raise them up a Prophet from among their brethren, like unto you, and will put my words in his mouth; and he shall speak unto them all that I shall command him.
19 And it shall come to pass, that whosoever will not hearken unto my words which he shall speak in my name, I will require it of him. (put to death)
Joshua 1:5 There shall not any man be able to stand before you all the days of your life: as I was with Moses, so I will be with you: I will not fail you, nor forsake you.
6 Be strong and of a good courage: for unto this people shall you divide for an inheritance the land, which I sware unto their fathers to give them.
7 Only be you strong and very courageous, that you may observe to do according to all the law, which Moses my servant commanded you: turn not from it to the right hand or to the left, that you may prosper wheresoever you go.
8 This book of the law shall not depart out of your mouth; but you shall meditate therein day and night, that you may observe to do according to all that is written therein: for then you shall make your way prosperous, and then you shall have good success.
9 Have not I commanded you? Be strong and of a good courage; be not afraid, neither be you dismayed: for the L-RD your G-d is with you wheresoever you go.
And for a direct correlation:
Joshua 1:16 And they answered Joshua, saying, All that you command us we will do, and wheresoever you send us, we will go.
17 According as we hearkened unto Moses in all things, so will we hearken unto you: only the L-RD your G-d be with you, as he was with Moses.
18 Whosoever he be that does rebel against your commandment, and will not hearken unto your words in all that you command him, he shall be put to death: only be strong and of a good courage.