I'm talking about doing any sort of work or anything before praying. I'll give you two questions, and you have to wait for the completion of the halacha (Jewish law) before you jump in and follow me. One is whether a person can shave every morning before praying, and the second, even more than that, is whether a person can shower every morning before praying. Both of these are brought up in Orach Chaim. The logic for why not would be that one cannot do one's own needs before doing the needs of Hashem, so to speak, which is to pray to God. That would be the logic right now.
Yalkut Yosef says this about both. Regarding shaving, he starts off by saying that a person should not shave with a machine, which means a shaver, every morning, because it's considered doing his own needs before praying. However, those who normally shave daily when they wake up in the morning are allowed to, because they have what to rely on: for them, it's considered preparation for tefillah (prayer). In other words, it switches from being a matter of taking care of myself to being considered preparation for prayer. The shower follows the exact same logic, even more strongly. That is, if someone says, “The best time for me to shower is in the morning because that's when I have a little time,” that's not great, because that means he's taking care of his needs during that time. But if he says, “I can't function after a night without showering in the morning. I can't go pray; I can't really get out there,” then that's a different thing. That's really considered, in a sense, his preparation for tefillah. In the same way, we can understand that the mikveh (ritual bath) is allowed for people early in the morning. Those who go in the mikveh in the morning—chassidim (Hasidic Jews), etc. The same thing can be true with this. For those people, for us, showering might be our way of functioning, and therefore it's allowed. But what I have to understand is that it's not that I'm getting my things in during the morning. Rather, I'm preparing for tefillah in the morning.

