Payman asked whether it is correct to say, "I sleep for 8 hours'' or ''I sleep 8 hours.''
Both of these sentences are correct, and both are appropriate in formal and informal contexts. The second alternative, without "for," is more common.