Sunnah

Obeying Nabi (sallallahu alaihi wasallam)

Q: Is it mentioned in the Quran that obeying the Messenger is obeying Allah? When I asked someone that who should we obey more, Allah or the Holy Prophet (Sallallahu Alaihi Wasallam)? They said obeying The Holy Prophet (Sallallahu Alaihi Wasallam) is the same as obeying Allah. Does it mean that we should equally obey them, wound we fall into shirk as we are obeying someone equally to Allah?