Microsoft Graph API to read phone number assigned to Teams user
Please go through Get a user. It returns a default set of properties businessPhones, displayName, givenName, id, mobilePhone, officeLocation etc.
Edit :
Please go through Get-CsOnlineTelephoneNumber to retrieve telephone numbers from the Business Voice Directory. Similar question was asked in this Where to find the phone number assigned to a MS Teams user?