PM leaves for home after attending Saudi King’s funeral