I was happy to see my dog returned home
That is great news!  Was he lost?
yea he got out from the backyard
That has definitely got to be a relief that he is back!  That is the best case scenario.  Hopefully, he never gets away again.  Make sure to check your fence!