When God told folks things during the Old Covenant, He expected them to be obedient - look at what Jonah went through because he decided his judgement of whether others were worth trying to save outweighed God's wishes on the matter.
Abraham wasn’t under the mosaic covenant as of his era.