Narrative:

Departing ZZZ to phx north west of the beatty VORTAC we painted a line of severe thunderstorms along our route. The longest route around these storms would have taken us a long way to the south of our route. My captain and I discussed the best course of action and requested left of course for weather upon which ATC replied 'left of course approved.' at some point soon after ATC came on with an urgent voice and said 'zzzzz you need to turn right immediately or you will be entering a restricted area.' we then proceeded to make about a 90-100 degree turn back to our right and continue to go-around the line of thunderstorms the long way to the south. Nothing was mentioned by ATC after the fact nor did we think twice about it after the fact; we were busy trying to avoid flying into a severe thunderstorm. Although we are aware of where special use airspace is our instruments do not tell us the exact boundaries of these areas. We as pilots rely on ATC to be our eyes and ears for these types of things especially during adverse weather conditions. In the future I will query ATC if I am in doubt of where a special use airspace boundary may be and avoid any issues.

Google
 

Original NASA ASRS Text

Title: An air carrier crew enroute to PHX was allowed a deviation left of course near BTY for weather and then ATC issued an immediate right turn more than 90 degrees to avoid entering a restricted area.

Narrative: Departing ZZZ to PHX north west of the BEATTY VORTAC we painted a line of severe thunderstorms along our route. The longest route around these storms would have taken us a long way to the south of our route. My captain and I discussed the best course of action and requested left of course for weather upon which ATC replied 'left of course approved.' At some point soon after ATC came on with an urgent voice and said 'ZZZZZ you need to turn right immediately or you will be entering a Restricted Area.' We then proceeded to make about a 90-100 degree turn back to our right and continue to go-around the line of thunderstorms the long way to the south. Nothing was mentioned by ATC after the fact nor did we think twice about it after the fact; we were busy trying to avoid flying into a severe thunderstorm. Although we are aware of where special use airspace is our instruments do not tell us the exact boundaries of these areas. We as pilots rely on ATC to be our eyes and ears for these types of things especially during adverse weather conditions. In the future I will query ATC if I am in doubt of where a special use airspace boundary may be and avoid any issues.

Data retrieved from NASA's ASRS site and automatically converted to unabbreviated mixed upper/lowercase text. This report is for informational purposes with no guarantee of accuracy. See NASA's ASRS site for official report.