You need 2 programs. One to send data, the other to receive data.
In both programs import the SoftSerial library, create an instance of SoftSerial like this
SoftwareSerial mySerial(10, 11); // RX, TX
In both setup() functions set the SoftwareSerial speed like this
Connect pin 10 on each Arduino to pin 11 on the other one.
Now you can print from one Arduino to the other like this
and receive it on the other one like this
This will output the data received on SoftSerial to the serial monitor on the receiving Arduino. You will, of course need to begin the normal serial interface with the baud rate that you want to use.
Once this works you can improve the receiving code considerably but get the basics working first.