Early morning time is best suited for Yoga. As per lot of Indian gurus, it should be done right after your morning bowel movement and before eating anything.
I prefer first thing in the morning to exercise and stretch my body gently. But if you want more of a workout, afternoon would be good too.
I keep two slots a day open for yoga so I can skip one slot if I'm too sore or distracted, or do restorative yoga during one slot and a full practice in the other
It should be better in the morning, before breakfast, but I usually prefer to do it in the evening, after work, because in the morning I'm always late 😁