The source for Rambam's 13 principles are detailed in his intro. to Talmud Sanhedrin chapter 10.
He cites at least 1 Torah verse for each of the 13 principles except for #5, which can be inferred by "reverse logic" in that there are many verses that prohibit devotion to other gods.
#6 (surprisingly) does not reference a particular verse.
#13 also does not list a specific verse. Rather, Ramba"m seems to indicate that he discussed this topic in other places, but it's unclear where this is.
For #13, I'm a bit surprised that Ramba"m didn't cite Rashi
s explanation on Deuteronomy 11:21:
לְמַ֨עַן יִרְבּ֤וּ יְמֵיכֶם֙ וִימֵ֣י בְנֵיכֶ֔ם עַ֚ל הָֽאֲדָמָ֔ה
אֲשֶׁ֨ר נִשְׁבַּ֧ע יְהוָ֛ה לַאֲבֹתֵיכֶ֖ם לָתֵ֣ת לָהֶ֑ם כִּימֵ֥י
הַשָּׁמַ֖יִם עַל־הָאָֽרֶץ׃ (ס)
that your days may be multiplied, and the days of your children, upon
the land which the LORD swore unto your fathers to give them, as the
days of the heavens above the earth.
Rashi on Deuteronomy 11:21:2:
לתת להם. לתת לכם אין כתיב כאן, אלא לתת להם, מכאן נמצינו למדים
תחית המתים מן התורה:
It doesn't state (to give) to you, but "to give to them". From this, we learn that the concept of Resurrection of the dead is mentioned in the Torah.