Once upon a time I took an afternoon off to give a coworker a ride home when they got laid off mid day; their ride was a coworker who was required to finish his shift due to circumstances.
It was honestly rough because it was immediately raw for them however it was a good thing.
Fwiw my manager was the one who had to do the layoff and they did not have any issue with me suddenly taking the afternoon off to do the deed. That shop really tried to be as good as they could about it.