In some cases it's optional: I asked him [for] the time. " I'd say that skipping the "for" when it's optional sounds a bit formal. If you're asking for something concrete, the "for" is usually required.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.