[guided]We first check the algebraic structure before using the basis property. The domain $R^n$ is the free left $R$-module with coordinatewise operations: for $x = (r_1,\ldots,r_n)$ and $y = (s_1,\ldots,s_n)$ in $R^n$, their sum is
\begin{align*}
x+y = (r_1+s_1,\ldots,r_n+s_n),
\end{align*}
and for $a \in R$, scalar multiplication is
\begin{align*}
a x = (a r_1,\ldots,a r_n).
\end{align*}
The codomain $M$ is a left $R$-module, so each product $r_i b_i$ lies in $M$, and the finite sum $\sum_{i=1}^{n} r_i b_i$ is an element of $M$. Hence the displayed formula defines a map $\varphi: R^n \to M$.
To prove additivity, take arbitrary elements $x = (r_1,\ldots,r_n)$ and $y = (s_1,\ldots,s_n)$ of $R^n$. Applying the definition of $\varphi$ to the coordinatewise sum gives
\begin{align*}
\varphi(x+y) = \sum_{i=1}^{n} (r_i+s_i)b_i.
\end{align*}
For each index $i$, distributivity of the module action over addition in $R$ gives $(r_i+s_i)b_i = r_i b_i + s_i b_i$. Summing these equalities in $M$ gives
\begin{align*}
\varphi(x+y) = \sum_{i=1}^{n} r_i b_i + \sum_{i=1}^{n} s_i b_i.
\end{align*}
By the definition of $\varphi(x)$ and $\varphi(y)$, this is exactly $\varphi(x)+\varphi(y)$.
To prove compatibility with left scalar multiplication, take an arbitrary scalar $a \in R$ and an arbitrary element $x = (r_1,\ldots,r_n) \in R^n$. The scalar multiple in $R^n$ is $a x = (a r_1,\ldots,a r_n)$, so
\begin{align*}
\varphi(a x) = \sum_{i=1}^{n} (a r_i)b_i.
\end{align*}
Because $M$ is a left $R$-module, the associativity axiom for scalar multiplication gives $(a r_i)b_i = a(r_i b_i)$ for each $i$. Therefore
\begin{align*}
\varphi(a x) = \sum_{i=1}^{n} a(r_i b_i).
\end{align*}
Distributivity of scalar multiplication over finite sums in $M$ gives
\begin{align*}
\varphi(a x) = a\sum_{i=1}^{n} r_i b_i.
\end{align*}
Using the definition of $\varphi(x)$, this becomes
\begin{align*}
\varphi(a x) = a\varphi(x).
\end{align*}
Thus $\varphi$ preserves both addition and left scalar multiplication, which is precisely the condition that $\varphi$ be a homomorphism of left $R$-modules.[/guided]